3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Advanced Batch

Step 10>> Parameter (2/2)

>> Parameter (2/2)
Well I'm glad you asked. That's what the >> Parameter is for!

The >> is just like the >, but instead of completely overwriting the specified file, we Add to it!

So let's try it.
DIR>>DIRContents.txt
Neat! 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.txt
What? 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.txt
Yay! Remember. The >> adds the Output to the very next line of the file.
« Previous StepDownload PDFView All StepsNext Step »
1 comment
Feb 10, 2010. 10:01 AMgraboy says:
Hahaha, Ill send this to my friend with a shutdown thing that first  makes about 10 files called I found a way into your computer, pop up in his directory then deletes this batch file (so he'll never know what happened) then shuts down his computer. ^^ I just realised something, I can use this for anything, so If I wanted I could make another batch file with a batch file! I could just add .CMD or .BAT (use CMD its 32 bit not 16 bit) and type my entire batch file in a batch file!

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
22
Followers
5
Author:Neodudeman