Re: Return code to exit from a .bat file

2001-10-01 Thread Mbedish
Thanks, it worked or at least gave me an error and exited the batch file. The batch files are difficult to work out if there are a lot (I have 12 or more files to check) so I will probably do as you suggest (write a wrapper) once I have worked out how to do it, and then I can return the error

Re: Return code to exit from a .bat file

2001-10-01 Thread Brett W. McCoy
On Mon, 1 Oct 2001 [EMAIL PROTECTED] wrote: > I think my main problem is getting an eror out of perl which is > recognised by a .bat file. I have set a return code in the program > from a subroutine but it is not getting to the operating system. You should use 'exit' to return a value from a Per

Re: Return code to exit from a .bat file

2001-10-01 Thread Mbedish
rsor to last label. and will stop > you can instert a echo command also after this. > echo " Stopped for error." > > For more info check this site http://www.computerhope.com/batch.htm > > > Regareds > > Rajeev > - Original Message ----- > From: <[EMAI

Re: Return code to exit from a .bat file

2001-10-01 Thread Rajeev Rumale
echo " Stopped for error." For more info check this site http://www.computerhope.com/batch.htm Regareds Rajeev - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 01, 2001 5:56 PM Subject: Return code to exit from a .ba

Return code to exit from a .bat file

2001-10-01 Thread Mbedish
I am doing a simple record length check on a series of files via a dos batch file e.g. check_length.bat: check_length.pl file1 100 check_length.pl file2 200 check_length.pl file3 300 Is it possible to do something in perl (like a return code) so that the batch file aborts if say file2 is i