PaulBarter
MIS
I am having problems opening a file on my network.
I am running VB6 under Windows 7, trying to read from a file on a different pc (running XP).
If I open the file as pathname "\\PC0\DOCS\Folder1\TEST.TXT" then it works OK
However \\PC0\DOCS is mapped on boot to T: but if I try opening "T:\Folder1\TEST.TXT" then it fails as file not found.
Using Windows Explorer on drive T: I can see all my folders and files (and no, it was not just me typing the wrong path - I double checked
) - I even copied the path direct from Explorer to make sure I got it right.
I have tried using DIR and FileSystemObject as well as just Open, but none of them can find the file.
HOWEVER, if I then use CommonDialog.Open to find the file then after that all works fine
Any ideas what CommonDialog does to make the drive visible to VB6?
I am running VB6 under Windows 7, trying to read from a file on a different pc (running XP).
If I open the file as pathname "\\PC0\DOCS\Folder1\TEST.TXT" then it works OK
However \\PC0\DOCS is mapped on boot to T: but if I try opening "T:\Folder1\TEST.TXT" then it fails as file not found.
Using Windows Explorer on drive T: I can see all my folders and files (and no, it was not just me typing the wrong path - I double checked
I have tried using DIR and FileSystemObject as well as just Open, but none of them can find the file.
HOWEVER, if I then use CommonDialog.Open to find the file then after that all works fine
Any ideas what CommonDialog does to make the drive visible to VB6?