/F was unexpected at this time

September 10, 2010 at 12:12:59
Specs: Winserver 2003
I'm very new at DOS, so sorry if this is not too bright.

I want to grab strings from one file and compare them to strings in a second file. Then remove strings that match from the second file.

for /F "delims=+" %%x in (%safefile%) DO (
for F/ "delims=+" %%y in (%tmp_keyword_file) DO (
if %%y == %%x change.com "%%y" ""
)
)


I get /F was unexpected at this time.

Help!
Thanks!


See More: /F was unexpected at this time

Report •

#1
September 10, 2010 at 13:14:18
Let's do a little bit of spell checking.

----
for F/ "delims=+" %%y in (%tmp_keyword_file) DO (
----

Does that look right to you?

Can I put a question here?


Report •

#2
September 10, 2010 at 13:43:56
ouch! it's been a long day. Still got an error, so instead of a nested for loop i'll make the inner loop a call.
Thanks for your help.

Report •

#3
September 10, 2010 at 13:58:39
Haha! If you need any more help feel free to ask!

Can I put a question here?


Report •
Related Solutions


Ask Question