Click to See Complete Forum and Search --> : conditional script problem


Jaco Johnson
05-21-2001, 02:09 PM
I am having problems with a logon script designed to check for the presence of a file on the user's C: drive before calling a certain subroutine.
Windows NT domain with NT and 2000 servers and workstations.

users are pointed to script.bat in their profiles.

script.bat is a one-line script:
"script.vbs" (this is the only command - loads script.vbs also located in ..ImportScripts on domain controllers).

script.vbs contains the following conditional statement:
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists("c:
oinstall.txt") = False then
Call installsub
End if

The installsub subroutine runs a quiet installation of another file.
*** The problem is that even when the noinstall.txt file exists on the user's C: drive, the installsub command is sometime still called. When the noinstall.txt file is present, sometimes it is found, other times it is not. Even the same machine will find it at times and not others. VERY frustrating. Any help greatly appreciated.