Sign in with
Sign up | Sign in
Your question

Error Handling in a batch file

Tags:
  • Business Computing
Last response: in Business Computing
Share
August 22, 2014 12:56:45 PM

ok I have a batch file that calls a boxed program that stamps several text files at once, this works great except if there is one file that errors. for example I have 100 text files that sign successful but one doesn't it send all the text file into the error queue. my question is how do I just send the one text file that error to the error queue and process the other files.

More about : error handling batch file

August 22, 2014 3:24:29 PM

What language are you using for for your batch file? Is it just plain DOS bat type stuff? If so I would HIGHLY recommend you use PowerShell 3.0 or newer. PowerShell has try -- catch blocks for error handling.
m
0
l
!