Step 10>> Parameter (2/2)
The >> is just like the >, but instead of completely overwriting the specified file, we Add to it!
So let's try it.
DIR>>DIRContents.txtNeat! Worked Perfectly! So wait. Does that mean that I can write anything I want into a text file? I want to try it!
Batch Is Awesome>Awesome.txtWhat? Why didn't that work? It's because the parameter only writes the output of Legitimate Commands, not just anything you type in. But, this is a problem that is simply solved. Remember, the parameters record the Output of Commands. What command has an output that we can control?
Right! The ECHO Command!
ECHO Batch Is Awesome>Awesome.txtECHO I'm so glad that I know it.>>Awesome.txtYay! Remember. The >> adds the Output to the very next line of the file.
| « Previous Step | Download PDFView All Steps | Next Step » |
1
comment
|
Add Comment
|
![]() |
Add Comment
|





















































