Vicki05
asked on
Automate a vbscript by checking the OS version before running
Hi All,
I am trying to automate a script that I have to run on Windows 2000, XP and 7 (64bit). Currently I am asking for user input by using the case method. I was wondering if it is possible to automate this? I need the script to check what OS version it is and to run that part of the script.
The file structure of what I am installing is the same for Windows 2000 and XP. It is different for Windows 7. Please advice?
I am trying to automate a script that I have to run on Windows 2000, XP and 7 (64bit). Currently I am asking for user input by using the case method. I was wondering if it is possible to automate this? I need the script to check what OS version it is and to run that part of the script.
The file structure of what I am installing is the same for Windows 2000 and XP. It is different for Windows 7. Please advice?
Another expert has answered this here: https://www.experts-exchange.com/questions/27091420/VB-Script-to-determine-os-version-Not-using-WMI-using-registry-keys-query-or-ver-command.html
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Great! Good luck on the 2000.
ASKER
I found this solution and it works great. Still working on sleep time for Windows 2000.