C
C C
Hello.
I'm trying to run a for loop that is in a batch file but it does not work!
But if I type the exact "for" command on the command prompt,
it works. When run in a batch file, it errors out with:
"n was unexpected at this time".
Here is the "for" loop command:
for %n in (*.TXT) do grep ITEM1 %n
What am I missing?
Thanks in advance.
I'm trying to run a for loop that is in a batch file but it does not work!
But if I type the exact "for" command on the command prompt,
it works. When run in a batch file, it errors out with:
"n was unexpected at this time".
Here is the "for" loop command:
for %n in (*.TXT) do grep ITEM1 %n
What am I missing?
Thanks in advance.