jvleigh221
asked on
Scripting a login script for the possiblilty of different directories
Windows 2003 Server, Win 2000 and XP clients
I need to create a login script that silently uninstalls an antivirus program.
I already have the commands necessary to uninstall the program, however the program I need to uninstall may resides in one of two different directories depending on what version the user had at the time of install.
So the problem I have is how to write the script so that it works like this:
If this directory exists run this command
else run this other command
Thank you.
Jeremy Leigh
I need to create a login script that silently uninstalls an antivirus program.
I already have the commands necessary to uninstall the program, however the program I need to uninstall may resides in one of two different directories depending on what version the user had at the time of install.
So the problem I have is how to write the script so that it works like this:
If this directory exists run this command
else run this other command
Thank you.
Jeremy Leigh
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It works in 2000 - and I believe NT4 as well. Possibly even 9x.
ASKER
Thank you...That was exactly what I was looking for...much appreciation.
IF EXIST C:\Windows \\server1\uninstallfromwin
IF EXIST C:\Winnt \\server1\uninstallfromwin
...etc.