Change working directory

Command groupFlag affectedReversibleExecute on clientPlatform(s)
External commandsYESNONOWindows,Linux

Syntax

Change working directory
 
(path)
 
Returns 
err-code

Description

Note: The flag is set according to whether Omnis was able to make a call to this external command.

This command changes the current directory in use under Windows or Linux. Wild cards are not allowed with this command.

On Windows, Change working directory only switches directories on the same drive, not between drives.

It returns an error code (See Error Codes), or zero if no error occurs.

Example

Change working directory
 
(
"c:\omnis\html"
)
 
Returns 
lErrCode
 
## windows

Change working directory
 
(
"/omnis/html"
)
 
Returns 
lErrCode
 
## linux