|
|||||
|
||||||
Related Syntax | Other Library Functions |
function |
FS_ChangeDirectory |
Library: File system utilities (OMFSYS) legacy
Include: omfsys.xin |
define external function FS_ChangeDirectory value stream newpath status modifiable stream statusvalue
Argument definitions
The omfsys library has been deprecated and will be removed from a future version of the language. Use omvfs instead.
Use FS_ChangeDirectory to set the current (working) directory.
You must include the following line at the beginning of your OmniMark program:
include "omfsys.xin"
Note that "newpath" must refer to a valid path name, and you must have execute (search) access to the specified directory.
The statusvalue output argument will contain either a zero length string if the function succeeds, or one of the following error codes:
This example sets the working directory to "C:\temp"" and outputs an error message if any error occurs.
; FS_ChangeDirectory include "omfsys.xin" process local stream error local stream location initial {"C:\temp"} FS_ChangeDirectory location status error output "Error " || error || " changing to directory " || location || "%n" unless error = ""