Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- rem Get Windows OS build number
- for /f "tokens=2 delims==" %%a in ('wmic path Win32_OperatingSystem get BuildNumber /value') do (
- set /a WinBuild=%%a)
- rem Test for Windows 7
- if %winbuild% LEQ 7601 (echo Windows 7) else (echo not Windows 7)
- pause
Advertisement
Add Comment
Please, Sign In to add comment