The Nettle Annual 2006 HTML version

Batch Files
In my last article I talked about the autoexec.bat file and how to use
it to automatically clear out your temporary files. Now, I’m going to
tell you a bit more about these types of files like autoexec.bat -
they’re called batch files.
Batch files are files that you can put commands in that you might
normally use at the command prompt, or DOS as it is also called.
For example, you can use batch files to run programs, open files, or
do other system processes.
Here I’m going to show you an easy step to improve your life.
Every time I boot up my computer, I open up Maxthon, my web
browser, and then I open up Mozilla Thunderbird, my email client.
How much time could I save if I had a shortcut on the desktop that
would open both of these programs at once?
To begin, let’s create a new folder to place our batch files in.
From your desktop, click on ‘My Computer’, and then head to ‘C:’. From
here, either right-click or press SHIFT+F10 to bring up a little menu.
Hover over ‘new’ and another menu will come up. Select ‘folder’.
Name this folder BATCH. This will be the folder you place your
batch files in. Go into this folder and create a new text document by
right-clicking or pressing SHIFT+F10, hover over ‘new’, and select
‘text document’.
Rename this newly created file with something you can remember,
like primary_programs.bat. The extension must be .bat, which is a
batch file. Right-click on the icon now and select edit to bring up
notepad. Here, you will type in the commands to open two
programs, your browser, and your email client.
I use Maxthon and Thunderbird, but most people use Internet
Explorer and Outlook Express as their browser and email client, so
we’ll use those as an example. Customizing this to open different
programs is easy, and I’ll explain this a little later.
First, let’s put in some comments to help keep us organized. At the
top of this file, put the following: