DirGet

Gets the current working directory.

Syntax:

DirGet ( )

Parameters:

(none)

Returns:

(s) current working directory.

 

Use this function to determine which directory we are currently in. It's especially useful when changing drives or directories temporarily.

 

Example:


; Get, then restore current working directory
origdir = DirGet( )
DirChange("c:\")
FileCopy("config.sys", "%origdir%xxxtemp.xyz", @FALSE)
DirChange(origdir)
Message("DirGet","Current working directory retrieved and restored.")
See Also:

CurrentFile, CurrentPath, DirHome, DirWindows, DirScript