Computing.Net > Forums > Disk Operating System > Dos - Errorlevel 45?

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.

Dos - Errorlevel 45?

Reply to Message Icon

Name: Eliz
Date: July 12, 2001 at 11:49:56 Pacific
Comment:

Hi,

I'm really stumped here =( I'm trying to run "Start /wait prog.exe /q" in WinNT4 dos. /q makes the prog.exe 'quiet', not needing any user interface and not openning any windows. The prog.exe does everything it should but when executing "echo %errorlevel%" at the end, the result is 45.

What is Errorlevel 45?! I've tried searching around but can't find anything. Please help if you can.

Thanks!



Sponsored Link
Ads by Google

Response Number 1
Name: Secret_Doom
Date: July 12, 2001 at 15:45:13 Pacific
Reply:

**I THINK** that's a value returned by the last aplication used. In general cases:
errorlevel=0 means there where no errors,
errorlevel=1 means there where errors

ie: if you do in a batch file:
find "abc" text.dat> nul
Find.exe will return an errorlevel=1 if it doesn't find anything. If it can find the "abc", it will return a errorlevel=0

ie2: in choice.com:
choice /c:abc Choose
If user chooses option "a", choice.com wil return errorlevel=1. If "b", errorlevel=2 and so. Then you can make the batch act depending on users choice, like this:
if errorlevel=3 echo C
if errorlevel=2 if not errorlevel=3 echo B
if not errorlevel=2 echo A
(not that in batch, a string "if errorlevel=#" returns a true value if the errorlevel is equal OR GREATER then #)

But a program may return several errorlevels. I have no idea what does errorlevel being 45 means on your case

I hope I have helped someway

-- Secret_Doom --


0

Response Number 2
Name: reinhard
Date: August 31, 2001 at 13:02:13 Pacific
Reply:

hi. read your question today. i think, there are only a few progs sending errorlevel. i heard there is something in dos-help to read. hih.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Dos - Errorlevel 45?

Setting dos errorlevel www.computing.net/answers/dos/setting-dos-errorlevel/1034.html

errorlevel question www.computing.net/answers/dos/errorlevel-question/3280.html

DOS errorlevels - what do they mean? www.computing.net/answers/dos/dos-errorlevels-what-do-they-mean/773.html