If you already know the essentials of Batch the you DO NOT need to read this instructable continue to Not So Basic Batch Tutorial.

NOTE!: Whenever something is in quotation marks ("example"), do not include the quotation marks (if you see that you must just type: example)

Step 1: So, what is Batch

For those who don't know, a Batch file is a text file containing a series of commands to be executed by Command Prompt (CMD). When a batch file is run, CMD reads the file and executes its commands.

To open your CMD, click START > RUN > type "CMD" > OK
(some of you may need to type "CMD.EXE")
Hello, and welcome to the Instructables community! It's great that you've decided to tell the world about something you've made by publishing an Instructable. We just wanted to let you know that your project still needs a little more work if you want it to be well received on Instructables. Projects that don't include certain basic elements tend not to get the attention that they deserve, and so we'd love for you to check out the list below of what makes a successful Instructable. Successful projects on Instructables include: - clearly written details of a finished project with instruction - as many steps as are necessary to explain your project - clear images that you took of your project for most, if not all of your steps - an intro image - proper spelling and grammar - appropriate cautions or safety considerations I'll give you another opportunity to make any final changes to your project before we publish it. Once you're all set to go, please republish your project and send me a quick comment letting me know that you've made some changes. I'll give it a quick final check to make sure you're on the right path, and then remove this note. Thanks for your submission and we hope to see your project published soon!
<p>this is so confusing to learn my control prompt is not reconising the comands </p>
<p>maybe if you could spell:)</p>
<p>This is working for me and I am a total, total beginner. I would suggest 3 things:</p><p>1) Make sure you are running CMD as the Administrator (right click the icon and select 'run as administrator')</p><p>2) If you are making CMD files, you need to give them the suffix .cmd</p><p>3) Check out my little program for all windows systems; so basic but you can copy/paste it into a note file and give it a .cmd suffix (and run as administrator):</p><p>echo off</p><p>cls</p><p>color 1A</p><p>echo Welcome to the Magic System Scanner.</p><p>echo Magic will now scan your system.</p><p>echo This scan will use a considerable amount of system resources, but you can minimise this window and keep using other programs if you wish. Once the initial process is complete, you will have to type 'y' and 'enter' to restart the system and begin the disk repair. This process may take over an hour.</p><p>echo You can close this window at any time without harming your system. However, if you wish to run the Magic System Scanner again, you may need to restart your computer first.</p><p>sfc /scannow</p><p>chkdsk c: /r</p>
More information please:<br><br>What are you typing in, what is it saying in response?<br><br>Double check that you are typing the commands exactly as you see them.
<p>awesome and thnks </p><p>it is the greatet</p>
<p>Too much clicks and very confusing ... I found some good tutorial on </p><p>http://www.tinysoftwares.in/BatchFileTutorial/Index</p>
<p>For useful Batch files visit</p><p><a href="http://batch798.blogspot.in/" rel="nofollow">http://batch798.blogspot.in/</a></p>
I question is my file name is 1mp3<br>And my bat file open in pc then open file 1mp3 which extention is give to my bat fil
<p>gg izi *-*</p>
Ahh! The evil GOTO command!!!!!!!!!!!!!!!!!!!!! Make it go away! Try using this in school for a real programming language. The professor will tell you to just leave and never come back. GOTO is evil in all cases.
<p>Well, the trouble is, MS script does not have the command structures that allow programmers to avoid the GOTO statement, such as the WHILE statement. Which I think is unconscionable, since the GOTO statement is indeed evil, and destroys the structure of your programs.</p>
<strong>FORK BOMB FTW!!!!</strong><br/>
Indeed<br />
&nbsp;It doesn't seem to work for m, I made a batch subsystem which is incomplete and it does not seem to work wah...<br /> <br />
Then your professor should not be teaching programming. The goto command must not be over-used, but it stops your programs from being linear. That is very useful, as your professor doesn't realize.
<p>Cool, I made something like this.<br>If you want to check it out....<br>https://www.instructables.com/id/Basic-Batch-command-list/</p>
Ok I am checking yours
<p>yes thank you fellow data traveller.ressspek.</p>
<p>It says:</p><p>^CTerminate batch job? &lt;Y/N&gt;</p><p>...and it doesn't go to the top! :(</p>
@ echo off<br>echo :press a key to go to ???<br>pause<br>start www.instructables.com
<p>Remove the second line as pause will already say press any key to go.</p>
<p>that's give big help</p>
<p>this is cool, but i made my own batch file, that allow you to download file from internet, just like download manager. please visit this instructables</p><p>https://www.instructables.com/id/How-To-download-File-on-internet-using-batch-file/</p><p>thanks dude!</p>
I learn my first batch stuff here and and looky me! I understand every command from TAT`s batch... file... mega... subsystem I think? Or is it just system? OH WELL!
u dont need the @ in front of the echo if u type in echo off or echo on
&nbsp;You do if you want a clean file. What I mean is that the command turning echo off will show up at the top. You don't want one code to show up and then have it be all clean, you either put the @ and make it all clean or forget that command and deal with the extra stuff.
coooooool i put color 4d
You like pink when your username is redmaker!??!?!??!?!??!??!
Okay that <em>is</em> kinda cool....<br/>
haha<br />
no i hate pink but i didnt knolw wat to put so i radomly pressed 2 keys
Can you do this with programs or documents
Thank you much
Batch is a new language for me. I'm still not sure what all it is or how far I'll get with it but, I do love a challenge and learning something new. In fact...I always did want to learn a new language. LOL Thanks.
Thank you, just what i needed for some basic shortcut stuff!
ty man
I've been programming for a few years and I think its very informative for the newbies . Most of us won't take the time to explain the little stuff that we take for granted knowing..
NMice to hear some positive feedback, thanks :)

About This Instructable




More by Sejma:Very Basic Batch Tutorial Not So Basic Batch Tutorial Some Cool Batch Applications 
Add instructable to: