Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Error Handling in Batch File  (Read 2426 times)

0 Members and 1 Guest are viewing this topic.

anbeshivam

  • Guest
Error Handling in Batch File
« 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