Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Login Script: Detect Folder

Status
Not open for further replies.

cooperj

IS-IT--Management
Joined
Nov 3, 2004
Messages
5
Location
US
i need to know the correct syntax, or that it is even possible to detect a folder in the login script and then run something accordingly. like this:

if c:\windows\blah does not exists then
#\\servername\folde\run.exe
end

and i would like c: and windows to be variables, ie %os_drive% %system_root% or whatever. Thank you
 
actually, would this work also

if %os_drive\%systemroot%\blah exists then
end
else
#\\servername\folder\run.exe
end

instead of not looking for it, instead if it finds it then it ends otherwise goes on to run the program.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top