
Problems seeing network shares when VBS script is run from OEM event or if script is running as a service.
I have a
VBScript which accesses an NT file share on another server. When I
run this vbscript from the local hard drive it sees my mapped drive (X:)
fine. If I run my vbscript as a service, or an OEM event, then the vbscript
will no longer see the mapped file share but it still sees the local folders
on "C:".
Norton Anti-Virus is intalled on the computer where the script is running.
Could this be blocking something?...with "ILoveU.vbs" virus type threats
still lingering?
How might I fix this problem? Thanks, Kevin
'*******************************************
Dim fs
Set fs = CreateObject("Scripting.FileSystemObject")
'Can't see the folder
if fs.folderexists("X:\Transfer\") then ' X: is a drive that is mapped to
our server
'do something
end if
'Sees the folder
if fs.folderexists("C:\Transfer\") then ' C: is a local drive
'do something
end if