Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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!

**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 errorsie: 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=0ie2: 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 --

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.

![]() |
![]() |
![]() |

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