Call another batch file within a FOR loop like this:
makfiles.batCode:set /a count=0 FOR /F "delims= tokens=1,*" %a in (bigfile.txt) do @echo %a %b > junk.txt & makfiles.bat
Code:set /a count += 1 type junk.txt > name%count%.txtSee FOR Windows NT 4/2000/XP Syntax. May I inquire your application for this?




Reply With Quote
See 
