Problem: Does FSO (FileSystemObject) Work on UNC Paths
Posted on 2004-04-20
I am trying to find out if a file exists on several network drives (using UNC paths). Im using the following code:
Dim fso, msg
Set fso = CreateObject("Scripting.FileSystemObject")
If (fso.FileExists(filespec)) Then
msg = True
msg = False
ReportFileStatus = msg
I call the function with: lEx = ReportFileStatus(strFullUNC) where strFullUnc is something like: "\\CMP100\[share]\[file]"
Somehow, i always get False as a result while i know for sure that the file exists (for testing). Does FSO not work on UNC Paths ?? And if not, is there an other way of getting this info ??
I do know for sure it isn't a security permissions issue, because i'm a authenticated user on the site running the ASP page and on the machine i'm trying to get the FSO to work on.
Thanks in advance,