|
|||||
|
||||||
Other Library Functions |
function |
vfsChangeDir |
Library: File system utilities (OMVFS) legacy
Include: omvfs.xin |
define external function vfsChangeDir value stream directory-path or define external function vfsChangeDir value stream directory-URL on value vfsDir dir
Argument definitions
Use vfsChangeDir to change the current working directory
You must include the following line at the beginning of your OmniMark program:
include "omvfs.xin"
The location supplied for directory-path must:
The location supplied for directory-URL must:
The vfsDir object dir must:
The new current working directory will be used for all subsequent vfs function calls.
General OS operation failure exceptions will return external exception VFS300. The accompanying text will contain details on the reason for the exception.
External exception VFS111 is thrown if an URL supplied as a parameter to this function contains invalid encoding.
External exception VFS004 is thrown if the URL or path exceeds system length limits.
For complete details on absolute URLs and valid encoding, see Internet Standards RFC 1738: Uniform Resource Locators.
For complete details on relative URLs, see Internet Standards RFC 1808: Relative Uniform Resource Locators.
A subdirectory of the current working directory is myPrograms. Make myPrograms the new current working directory.
include "omvfs.xin" process vfsChangeDir "myPrograms\"
Connect to a local directory. Make another directory on the same drive the current working directory. Make a directory on another drive the current working directory.
include "omvfs.xin" process local vfsDir Chicago . . . set Chicago to vfsConnect "file:///c:/ChicagoFormats/Style/" . . . vfsChangeDir "../Program%%20files/" on Chicago . . . vfsChangeDir "/d:/Testing/" on Chicago
Copyright © Stilo International plc, 1988-2008.