Cancel
Showing results for 
Search instead for 
Did you mean: 

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

Experimenter
Experimenter

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

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

Experimenter
Experimenter

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?

Experimenter
Experimenter

Try to be more specific.

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

Experimenter
Experimenter

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.