Format
CHDIR string1
Description
This statement will change the current directory to that specified in string1. If an error occurs when ASIC executes this command, it will set the System ERROR variable. A list of possible error codes is listed in the Error Messages Chapter of the ASIC Manual.
Example
CHDIR "\DOS"
IF ERROR = 0 THEN NOERROR:
If Drive "C" was the current drive, then this statement would change the current directory to "C:\DOS".
CHDIR "C:\DOS"
This statement would change the current directory on drive C to "C:\DOS"
whether or not drive C is the current drive. It would NOT change the
default drive to "C". Note that DOS retains a current directory for each
disk drive on your computer.
See Also
|