office politics
It's all just 1s and 0s
- Messages
- 6,555
- Location
- in the lab
I want to create a batch file that will determine which OS is running on the pc and run commands specifically for that OS.
I really only need for it to distinguish between 98 & 2k OSs. I was thinking that I would try to detect the folder 'documents and settings'. I tried to use the following line of code on an xp pc but it would produce the expected results.
@echo off
if exist "C:\documents and settings\nul" echo docs and settings exists
I really only need for it to distinguish between 98 & 2k OSs. I was thinking that I would try to detect the folder 'documents and settings'. I tried to use the following line of code on an xp pc but it would produce the expected results.
@echo off
if exist "C:\documents and settings\nul" echo docs and settings exists