How to skip the input in batch file?

Problem in running Batch file. Help Me plz...?

  • Hi Guys.. Am using batch files for executing a software. The Batch file contains list of different inputs for that software. The problem is 'if a error occurred in the middle of the list' then the remaining part is not executed until the problem clears. Here is the link for that batch file : http://www.mediafire.com/?og53316gchsy3ea The structure of batch file : 1. I specified location for that software.(Web Content Extractor). I mean installed location. 2. Then link for the template file created in that software(.wcepr). 3. Then a text file containing input(URLs). 4. Then output of the software is saved in XML format. The above pattern repeated for number of times with different inputs and different templates. If there is a error in a template or a URL in the list then the whole execution is stopped without executing reset of the list... Is there any way to skip the error file and execute the rest?????? Help me plz.. Waiting for ur valuable replay....

  • Answer:

    Man.. that's HARD to read... Basic batching: You need to learn & use REM statements (they make batches and helping a whole lot better) I strongly suggest you learn and use variables - you've got MANY repeated lines and.. for your errors; Make each section it's own batch and run them from the main batch via CMD /C {section.batch.X} If a 'section.bat' fails, the main will keep running.

Rose at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.