Saved Bookmarks
| 1. |
Solve : How to View batch file completed or failed? |
|
Answer» Hello All, When run a batch file it executes a series of commands, but it never tells that the process has successfully finished or failed. Is there a way to view that a specific batch file has been executed successfully or failed. Thanks for help.i think you can do it with a if stament but i dont know for sureCommands GENERALLY GIVE you an errorlevel if they are sucdessfully or not. Normally it is 0 if sucessfull or a HIGHER number if it fails. You can proof this with an if statement. When you only want to proof if it is ok this is an easy way to do this: if %errorlevel% EQU 0 echo .... & goto ..... But find out what %errrolevel% the COMMAND give you in different cases. (It is not always only 0 or 1) uli |
|