Build precise queries to find exactly what you need
Press ESC to close
Excellent ! Add check windows version, tested ont w2k, w2003, 2008, 7 (not in xp)
for /f “tokens=2 delims=[]” %%x in (‘ver’) do set cmdver=%%x set cmdver=%cmdver:Version =% for /f “tokens=1,2,3* delims=.” %%g in (“%cmdver%”) do ( set major=%%g set minor=%%h set build=%%i )
rem Windows 3.1,95,95 OSR2,NT 4.0,98,98 SE,ME IF %major% LEQ 4 goto ver_false rem Windows 2000 echo %cmdver% | FINDSTR /C:”5.0″ > nul IF %ERRORLEVEL% EQU 0 goto ver_false
:ver_false echo UNKNOWN: OS Version not supported [%cmdver%] exit /b 3
heklp source : http://ss64.org/viewtopic.php?pid=3151#p3151
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!