I'm running into the following problem and I was hoping someone can
help.
I have the following code snipet in a script I'm running from a DOS
prompt.
----------------------------------
qDriveFileName = "\\cgshare\share1\version.dat"
Set filesys = CreateObject("Scripting.FileSystemObject")
if filesys.FileExists(qDriveFileName) then
'Get a reference to the file
Set qDriveFile = filesys.GetFile(qDriveFileName)
if Err.Number <> 0 then
MsgBox "Error: " & Err.Number & ", " & Err.Description
wscript.quit
else
qDriveDate = qDriveFile.DateLastModified
end if
end if
---------------------------------
the FileExists returns true but the getFile give me error 53, File Not
Found. Anybody know what's going on here? I tried searching through
Google but couldn't find a solution. This code seems to work fine
when I'm dealing with local drives.
-- Mark