I would like to make a batch file that writes a command to a batch file. I have tried using
@echo "@echo this is a test>test.txt">testBat.bat
Which gives me the output in testBat.bat of:
"@echo this is a test>test.txt"
This issue is, it still has the quotations around it in the batch file, and running it without the quotes gives me:
"this is a test"
So running it without the quotes just puts the text in the batch file. And after spending a half an hour looking I couldn't find if this was at all possible.