At the moment I have
echo ping %id% > 1.bat
But I want to copy more than one line of code into another file.
Any ideas?
At the moment I have
echo ping %id% > 1.bat
But I want to copy more than one line of code into another file.
Any ideas?
Option 1 - (same as what Stephan posted)
Option 2
Option 3
Options 2 and 3 are significantly faster than option 1 if you are writing lots of output because they only have to open and position the stream pointer once, whereas option 1 must open and position for each line.