0

I have always wanted to be able to write the whole code of one batch file to another batch file so that the code of the other batch file is overwritten by the code of my batch file. I know how to write one statement to another batch file, but that wouldn't help since I need to transfer the whole code of the file that is writing to the other file to the other file and overwrite the code of the other file. I have always used this code, but seems not to be that helpful:

@echo My text > example.bat

I hope you can tell me a solution to this problem. Thank You!

3
  • What's wrong with copy myfile.bat example.bat?
    – DavidPostill
    Mar 23, 2019 at 21:24
  • lol :p That is so funny, how do I Copy and Paste?
    – Cris
    Aug 21, 2019 at 9:49
  • I so feel like writing some code to feel his HDD up with .bat files!
    – Cris
    Aug 21, 2019 at 9:49

0

You must log in to answer this question.

Browse other questions tagged .