Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
ECHO.
Hi,
I wish to check if the value of the variable %SP% is not equal to 6 then return and error levelrem *** SP version
for /f "tokens=4,*" %%a in ('reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\csdversion"') do set sp=%%a
echo SERVICE PACK = %SP%
if %SP% NEQ 6 or 6a do errorlevel Label55
:Label55
echo You need to upgrade to SP6 or SP6aThanks

![]() |
VPN Information
|
NT4 Usr Trust
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |