Thanks

———————————
Thu 30/06/2011
———————————
URL
URL
URL
URL
———————————
Thu 30/06/2011
———————————
URL1
URL1
URL1
———————————
Thu 30/06/2011
———————————
New URL
New URL
Moderator: DosItHelp
Code: Select all
@echo off
... Run your commands as normal from your script >> NewOutputFile.txt
For /F "tokens=* delims=" %%a IN (OldOutputFile.txt) DO echo %%a >> NewOutputFile.txt
DEL /Q OldOutputFile.txt
REN NewOutputFile.txt OldOutputFile.Txt
Acy Forsythe wrote:There isn't a command, but something like this would work...Code: Select all
@echo off
... Run your commands as normal from your script >> NewOutputFile.txt
For /F "tokens=* delims=" %%a IN (OldOutputFile.txt) DO echo %%a >> NewOutputFile.txt
DEL /Q OldOutputFile.txt
REN NewOutputFile.txt OldOutputFile.Txt
All your new stuff goes to the top of NewOutput file then all the stuff from OldOutputFile goes in after it.
Code: Select all
@echo off
echo newinformation > tmp.txt
type original.txt >> tmp.txt
echo y|move "tmp.txt", "original.txt"