|
-
May 24th, 2007, 02:20 PM
#3
Re: [RESOLVED] Catching errorlevel from a batch file
If echo errorlev = %ERRORLEVEL% doesn't throw an error, the exit error of the batch process is 0. There's only 1 error level for a program, and that's the one it sets when it exits. You can save error levels locally (in the batch process) and force an exit level based on a previous error, even though the process has since completed a few further steps with no error.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|