1.

Solve : Is it possible to edit a text file from inside a batch file?

Answer» HI,
Any ppl out there know how to edit a text file using a batch file.
Say i have a text file abc.text.
I want to open it from a batch file, then add a line of text to it and close it
this OPERATION has to be DONE by a batch file program.

Thanks in advance
Bijuecho linetoaddhere >>%folder%\mytxt.txt

that will add a line that says "linetoaddhere" in folder\mytxt.txt
using >> will add to the file , if you were to use a single > it would delete the file first.If you need to do quite complex things,

just call your EDITOR from the batch file


Discussion

No Comment Found