
Problem using FileSystemObject and UNC paths
I am trying to use JScript and the FileSystemObject to iterate through
folders on my network. The problem is that functions like GetFolder fail
when I give them a UNC path. The same code succeeds if I replace the UNC
path with actual local on the server (assuming the UNC path referred to a
drive actually on the server).
For example:
There is a file on my server at d:\public\readme.txt.
d:\public is shared on the network as \\comp1\public.
fso.GetFile("d:\\public\\readme.txt"); // works fine
fso.GetFile("\\\\comp1\\public\\readme.txt"); // doesn't work
Ideas?