Computer Hope

Microsoft => Microsoft Windows => Windows XP => Topic started by: anbeshivam on September 01, 2008, 10:38:02 PM

Title: Error Handling in Batch File
Post by: anbeshivam on September 01, 2008, 10:38:02 PM
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