To display the contents of a text file (Old.bat) with TYPE:
To create a copy of a file (Old.bat) to or overwrite an existing (New.bat):TYPE Old.bat | MORE
To append the contents of one file (Old.bat) to another file (New.bat):TYPE Old.bat > New.bat
To create an empty file:TYPE Old.bat >> New.bat
Remember though that it will only work with text-files, not with binary files.TYPE nul > New.bat
Related Using ECHO to modify text files.
Leave a Reply