Reputation: 777
Is it possible to create a new batch file from an existing? For example in Java, C++ pretty much any other language I can run one .exe and create a different .exe with separate code. Is this possible to do in batch files?
Let's say I want test.bat to be this
echo hello hello
and I want it to create another .bat file called test2.bat which will contain this:
echo hi hi
Upvotes: 2
Views: 1565