I've got an incredibly long-winded (too long to post here, unfortunately, so it's more a general question) batch file that contains
FOR /F %%G IN (e:\apps\dw\dump\pending_trn.txt) DO (
...do stuff here...
The pending_trn.txt file just contains numbers
The aim of this is to loop through each item in the file, kicking out a text file with further information on the transaction. So I'd expect to see in the target directory text files called text.8000003 and text.8000070 and text.8000912
But for some reason it only works on the last item in the file, ie. the only textfile that is created is text.8000912
I've got a line in the batch file that says
Can you guys think of any other reason that the FOR /F loop would only complete the last item in the source file?
Many Thanks in advance