ver | find "XP" > nul
if %ERRORLEVEL%==0 goto _XP
:_XP
echo "this is XP"
goto end
: NONXP
echo "this is not XP"
: end
Line 1: ver displays version
win7 case --> Microsoft Windows [Version 6.1.7601]
winxp case -->Microsoft Windows XP [Version 5.1.2600]
Line 2: dedepends of result, do somthing,.
댓글 없음:
댓글 쓰기