
Gets the current working directory.
DirGet ( )
(none)
(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.
; 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.")