| 1. |
Solve : error level in batch file? |
|
Answer» can any one help me about error level in batch file. the problem is sloved . Not quite. Not all programs produce errorlevels. Errorlevels should be checked in reverse sequence and the actual check is for equal or greater than: Code: [Select]if errorlevel 1 goto error if errorlevel 0 goto success There is also a VARIABLE %errorlevel% (cmd extensions must be on) which is treated as any other variable (ie: if %errorlevel%==1) The errorlevels for MS commands are not standardized. XCOPY returns 0 if successful and anything from 1 to 5 if not successful. the difference between this 1. IF errorlevel N command and the Win2k and later alternative: 2. IF %errorlevel% EQU N command is that 1 means "if errorlevel is N or greater then do command" whereas 2 means "if errorlevel is exactly equal to N then do command"THANKS for the explanation, i meant by problem is sloved that for now my problem is resolved . whatever thaks for the knowladge shared by you. |
|