1.

Solve : Batch to determine Operating System Version?

Answer»

Is there a WAY to determine if I am operating on either Win2k or XP withing a batch FILE? I NEED to KNOW so I can set some variables that are passed to an application.

Thanksyou can USE "ver" or "srvinfo". srvinfo should be from resource kit...if i am not wrong.Using Var:

for /f "delims=" %z in ('ver') do @echo %z


Using Systeminfo:

systeminfo | findstr /B /C:"OS Version:"



Discussion

No Comment Found