ChDir


Function ChDir( path )


Returns 1 on success, 0 on failure to change the current working directory to path.


Syntax ChDir("a:\backups")


Remarks

ChDir causes the directory specified by path to become the current working directory.

path must specify an existing directory for ChDir to succeed.


See Also:

Cwd MkDir FindFirst File and Directory functions


Example Script


IF CHDIR("C:\Temp") THEN

PRINT CWD()

ELSE

PRINT "Directory not found."

ENDIF