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?