Security Basics mailing list archives

Re: RE: SP level of the Win OS from CMD


From: bob () bob com
Date: 1 Nov 2007 14:57:46 -0000

That will only work on XP. One command I used to identify if a computer was running Windows 98 or an NT flavour years 
back was using the %OS% variable. It worked great for command scripts. eg

echo %OS%
or
if %OS%==Windows_NT then "do something" else don't!!!


Current thread: