I admit there was a typo in the last post (I incorrectly used the other typo post as a guide, but you should at least get some output. I cannot recreate the syntax error even with the typo.
I couldn't find when the /f switch was first used with FOR, but I suspect it was after Win98. Are we talking Win98 or Win98SE?
Without the /f switch, I know of no way to parse in batch language. Windows Script is an option and is available free from Microsoft at
WinScript 5.6...and yes, it runs on Win98.
Good luck.