Computing.Net > Forums > Windows NT > error level

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

error level

Reply to Message Icon

Name: Koala75
Date: October 29, 2003 at 08:34:24 Pacific
OS: Windows NT
CPU/Ram: 800/256
Comment:

ECHO.
Hi,
I wish to check if the value of the variable %SP% is not equal to 6 then return and error level

rem *** 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 SP6a

Thanks



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


VPN Information NT4 Usr Trust



Post Locked

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


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: error level

batch scripting problems www.computing.net/answers/windows-nt/batch-scripting-problems/21916.html

Error in Event Log - Add virtual com port www.computing.net/answers/windows-nt/error-in-event-log-add-virtual-com-port/90.html

Scandisk Problems. Will not fix filesystem errors! www.computing.net/answers/windows-nt/scandisk-problems-will-not-fix-filesystem-errors-/598.html