Filesystemobject and map network drive

Posted by Yolande on Wed 02 Nov 2005 07:17 PM — 2 posts, 12,627 views.

#0
Hi there,

I tried to use filesystemobject to get the foler object which is a mapped network drive. The code I'm using is:

Set fso = CreateObject("Scripting.FileSystemObject")
Set objfolder = fso.GetFolder("G:\Test")
'or
'Set objfolder = fso.GetFolder("G:\Test\")

(G:\ is a mapped network drive.)

I got back the "Path not found" error message when I ran the code. I set the securety property of the drive to let everyone have the full access.

Any help? Thanks in advance.

Yolande

Australia Forum Administrator #1
Seemed to work for me on a network drive (without the trailing backslash).