1.

Solve : Error Handling in Batch File?

Answer»

Hi
     i am executing some sequence of commands from BATCH file, like

ECHO off
JAVAC ..\Test.java
ant
ant -f package.xml

while executing this batch file error can be thrown any line. EITHER of javac, ant or ant -f.

once the error is thrown from the java or ant i need stop the execution of subseqent scripts and have to DISPLAY the errors.

Can any one of you help me out in solving this problem.

Thanks in advance.

Regards
Siva



Discussion

No Comment Found