Main Menu
Home Page
Computer Guides
Computer Dictionary
Network Setup
Tips and Tricks
Internet Guide
Freeware/Shareware
PC Upgrade Guide
PC Maintenance
Support Forum
HTML Guide
|
Batch Files in Windows 2000
Batch file guide part 1, part 2 will be added early july.
Batch files are simple text based files that can be used to automate commands.
System administrators and power users are aware of them and use them often.
At their simplest they can be used as a shortcut on steroids. Often users
will use 2 or 3 programs at the same time when performing some tasks.
I often use photoshop, dreamweaver, and have notepad open when I'm building
this site. To make life a little easier I have created a batch file, double
clicking it opens all those programs. They can be used to start any program
or run any command. Batch files are a handy time saving tool for all users.
To create a simple batch file open notepad and type start then the name
of the program, on the next line type start and the name of the next program
you wish to open with this batch file. Continue until you have all the
programs listed you wish to open.
start photoshp.exe
start dreamweaver.exe
Start notepad
Note; you may need to type the directory path to the program, but I've
found mostly this is not needed.
Save your file by selecting Save As from the File menu.
Within the Save As dialog box use the drop down menu Save as
Type and select All Files, in the File name box type
yourfilename.cmd then click save.
Your batch file must have the file extension .cmd or .bat
Go to the location you saved your file and double left click it, the programs
you listed in the batch file should all open . You have just created a
shortcut pointing to multiple programs rather than one.
Your file will look like;
This is a very basic but handy use of a batch file. They can be used for
much more complex tasks such as listing the files within a directory and
printing the output to a text file. Batch files are used to automate complex
and/or repetative tasks.
|
Web-Site Administrators Local Time
|