-
I tried running a perfecty working project on my PC w/ Windows98 today on a machine w/WindowsNT.
Well, I got lots of "file not found" errors due to the fact that all the ChDir(MyDirectory) lines I put in the program act just as if they were not there!
How could this be?
-
Odd!
I just tried this...
Code:
ChDir "C:\Winnt"
MsgBox CurDir("C")
And output said C:\Winnt
Not sure why it wont work for you!?
Post a lump of the code......so we can peek
-
Maybe try:
Code:
Private Declare Function SetCurrentDirectory Lib "kernel32" Alias "SetCurrentDirectoryA" (ByVal lpPathName As String) As Long
Sub Form_Load()
SetCurrentDirectory "c:\MyDir"
End Sub