Just remember to use _CWD$ at the start of the program, and to save the result to a non-changing variable. If you navigate to different folders, your _CWD$ isn't going to be the same one that you started in.
Code: (Select All)
$If WIN Then
Dim Shared As String * 1 Slash: Slash = "\"
$Else
Dim Shared As String * 1 Slash: Slash = "/"
$End If
Dim Shared As String ExePath
ExePath = _CWD$
CHDIR "C:\"
Print ExePath, _CWD$