Hi All,
I change the current directory in a proc, using CurDir(). The change
persists across executions. I would like the CurDir() return value to be the
same at the start of each execution. Any suggestions will be appreciated.
The code below illustrates the problem. Thanks.
Dim currentDir As String
MsgBox CurDir()
currentDir = CurDir() + "\foo"
MsgBox currentDir
ChDir (currentDir )
I change the current directory in a proc, using CurDir(). The change
persists across executions. I would like the CurDir() return value to be the
same at the start of each execution. Any suggestions will be appreciated.
The code below illustrates the problem. Thanks.
Dim currentDir As String
MsgBox CurDir()
currentDir = CurDir() + "\foo"
MsgBox currentDir
ChDir (currentDir )
Comment