I cannot figure out how to do the following:
make a batch file that puts batch code at the start of the text and at the end! example
<input.txt>
@echo off
echo hello!
pause
<output.txt>
echo @echo off >test.bat
echo echo hello! >test.bat
echo pause >test.bat
As you can see i am trying to make a batch file form an existing batch file but i do not want to put "echo" and ">test.bat" every start of and end of a line of code because my code could be 1000-5000 lines of code.
any help would be nice
