zawa
asked on
Simple: detect OS and SP
Hi,
I need a batch file to detect what is the OS and Service Pack the pc has on and save the OS in the variable %os and the SP in the variable %sp
Thanks
I need a batch file to detect what is the OS and Service Pack the pc has on and save the OS in the variable %os and the SP in the variable %sp
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I believe my solution represents the best answer where the OS is NT, 2000, or XP. I do not believe systeminfo functions in NT. And the VBScript solution is both longer and requires the computer have VSH installed and running (NT 4 might be an issue with this).
Regardless, I think the points should be split evenly amongst the three of us.