Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Why won't my batch file process all the files?

[ Edited ]

Can someone tell me what I'm doing wrong with this batch file (in txt format)?  Each line has the identical syntax, with the exception of the file name I'm processing.  I can only get the first line to process the step to prt output,  and it fails to continue reading the remaining batch items.

 

I have tried "backspacing" the next line so that there isn't a "linefeed" at the end of each line.  (Everything runs together.)  When I try that, only the last item in the batch file will process.

 

What am I doing wrong?

 

Thank you!

3 REPLIES
Solution
Solution
Accepted by topic author STL_Jaybird-64
‎08-26-2015 04:32 AM

Re: Why won't my batch file process all the files?

With the help of user, Moudy, I give all the credit to him!

 

The trick to doing this is to put the DOS command CALL in front of each of the command lines inside the batch file!

 

In my case, the example is as follows:

 

call "C:\SPLM|NX85\...    <---line 1

call "C:\SPLM|NX85\...    <---line 2

 

Re: Why won't my batch file process all the files?

Try to be more specific.

Re: Why won't my batch file process all the files?

Seriously? Man Sad Try reading!  If this isn't detailed orientated, I don't know what is.  Also, if you read, the problem was solved.