Introduction: How to Create an Batch File

Batch files are sort of like a "forever saved" command prompt but with more commands. The file type is ".bat" Batch files can be used for password lock on files, calculator, simple animations, and much much more. Only works on windows

Step 1: First Open Notepad

First, open notepad. Word pad does not work.

Step 2: Write the Script

Here's the hard part. Actually writing the script. Find a list of ever signal command a their description here.So once you have an idea find the right commands to carry out your idea. Some commands have variables (ie attrib) So then layout the commands (each command on a separate line going from up to down in order) in note pad. I will be making a simple Echo (text) command. As you can see all commands are in CAPS. Also make sure to put in,pause if you don't want the command closing right after opening.

Step 3: Save As an Batch File

Now in the top left corner click file then save as. Locate the folder you want and name your file anything you want. BUT WAIT before you save, where the file says ".txt" (no quotes) delete that and replace that with ".bat" (no quotes.) and your done! To start up the command just locate the file and click on it. Depending on what you set it up to do it will most likely carry that out. if you have any questions ask ask in the comments

Step 4: Open the .bat File

Open the file and the file (depending on the script) will start.

Comments

author
seamster (author)2014-11-03

Nice, thanks!

About This Instructable

615views

6favorites

License:

Bio: Ming DeMers Senior Director of Fuel Ignition Division Jet Propulsion Laboratory 4800 Oak Grove Dr, Pasadena, CA 91109
More by Orange Shadow:Make Your Computer Faster by Installing Chromium OS5$ AC UnitThe Keyless Keyboard
Add instructable to: