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

Re: GetFile Problem with network drives by dlbjr

dlbjr
Wed Jun 16 20:56:31 CDT 2004

In the line "\\cgshare\share1\version.dat"

is cgshare the PC name?


-dlbjr

Discerning resolutions for the alms



Re: GetFile Problem with network drives by masterofhothands

masterofhothands
Thu Jun 17 10:12:50 CDT 2004

> In the line "\\cgshare\share1\version.dat"
>
> is cgshare the PC name?
>
>
> -dlbjr
>

It's the name of the network location. It's basically a file server.
I have no problem accessing the file if I use the above path in
windows explorer. It's only in the vbscript that I have the problem.


-- Mark