I'm wanting to take the columns in a text file and output them to another text file in a different order. I am able to do this to the first line, but not for every line in the file. So far I have:@echo off setLocal EnableDelayedExpansion for /f "tokens=1-4 delims=: " %%g in ("%time%") do set time_stamp=%%g%%h set /p var=<file1.txt set N= for /f "tokens=* delims= " %%a in (file1.txt) do ( set/a N=N+1 set var1=!var:~0,15! set var2=!var:~15,15! set var3=!var:~30,16! echo %date% %time_stamp% !var3!!var2!!var1! >> file3.txt ) ---------------------------------------------------------------------------- this will give something like 07/06/2011 0905 c b a 07/06/2011 0905 c b a 07/06/2011 0905 c b a 07/06/2011 0905 c b a in file3.txt, but I need it to keep going for something like 07/06/2011 0905 c b a 07/06/2011 0905 f e d 07/06/2011 0905 i h g 07/06/2011 0905 l k j |