Link to home
Start Free TrialLog in
Avatar of Vicki05
Vicki05Flag for United States of America

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?
Avatar of netcmh
netcmh
Flag of United States of America image

ASKER CERTIFIED SOLUTION
Avatar of Vicki05
Vicki05
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Great! Good luck on the 2000.
Avatar of Vicki05

ASKER

I found this solution and it works great. Still working on sleep time for Windows 2000.