| Automating Things with Batch Files |
Automating Things with Batch Files They Work on Today's Computers Too!
If you're familiar with MS-DOS at all, you'll recall that it's a command-driven operating system that performs functions issued at the C:> prompt. The only way to get an MS-DOS computer to do something was to type a command at this prompt and if you can imagine, it was a rather cumbersome way to use a computer.
As an example, to load up Microsoft's simple editing program, you had to type the name of the drive that the program was on, the directory that the program was in, and then the name of the program. So if Microsoft Edit was in a directory or folder named "Process," you could start the program by typing, "C:>process\edit.com" Then, and only then would the program load up for use.
This is a small command, but just imagine if you had a program that was deeply nested within a series of folder. You could end up typing a command as wide as your computer screen or worse, long enough that the entire command would have to wrap onto the next line! Now imagine having to type these long commands every time that you wanted to start a program. Yikes!
That's one of the reasons why batch files became so popular. Batch files are small text-based documents that contain a bunch of these commands on their own lines. When executed, they would process each command without the user having to type each and every one of them.
When Windows was developed, the need for typing commands was essentially eradicated thanks to the introduction of the point-and-click (mouse) interface. But this didn't stop the batch file fever that started under MS-DOS - and in some small circles, batch files are still as popular as they were in the beginning.
Even though you may use Windows XP or Vista, batch files can save you tons of time by automatically starting multiple programs and performing different tasks at the single click of a button. They don't require any extensive programming background and they don't need to be encrypted with some weird, expensive compiler. Batch files are plain text files, and you can build one for your own personal use with Windows' Notepad.
You could make a batch file that loads up your favorite websites at once for example, or you could make a batch file that fills your desktop with the most important applications for the day. To do so only requires a little knowledge about the locations of these applications.
Let's say that every day we need to load up the Yahoo web browser, Microsoft Word, and then the calculator that comes with Windows. Instead of doing this by hand, we could write a batch file to do it for us.
First, we'd load up Notepad and type in the following:
START "http://www.yahoo.com" START "c:/program files/microsoft office/office/winword.exe" START "c:/windows/calc.exe"
We would then save this data into a file named, "mytasks.bat" onto the Desktop for easy access. Each time we double-clicked on this file, the Yahoo website would load up, Microsoft Word would start, and the simple calculator would pop up.
Since we want these programs to load every day, we could create a shortcut to this file and then place the shortcut inside our computer's Start Up folder. That way, these three programs would load every time we turn on the computer. If you wanted these programs to start minimized, you could type the following into a batch file instead:
START http://www.yahoo.com /m START "c:/program files/microsoft office/office/winword.exe" /m START "c:/windows/calc.exe" /m
This will run all three programs as before, however the "/m" parameter will minimize them so that they don't clutter up the desktop.
Other people have found much more creative and effective ways to use batch files, but the important thing is that you know they're a resource you can use to save a few seconds or minutes in performing important tasks. We've come a long way from MS-DOS, but it's still a valuable source of automation that anyone can use with no programming knowledge at all.
Word count 681
|
Accessorizing Computers What Comes Out of the Box is a Really Just a Starter Kit Yesterday, we spent about three ... read more
Automating Things with Batch Files They Work on Today's Computers Too! If you're familiar with MS-DOS at all, you'll recall ... read more
Basic GUI Terminology Knowing What You're Working With Helps Technicians Getting help with your computer software can be easier when ... read more
Buying a Computer What To Do And Why It isn't fair, but buying a computer is just plain easier for ... read more
Cheap and Fast Software An Introduction to Shareware Visit any computer store today and you'll find what seems like miles ... read more
A Few Common Computer Errors (And What They Mean) Computer errors can pop up when least expected, they can cause ... read more
Computer Help Where and How to Get It Well there's no denying it - No matter how new or how ... read more
Computer Security In Today's Society, Protecting Your Computer Is A Requirement Advances in computer technology is a double-edged sword. On ... read more
Customizing Your Computer with Preferences Making Your Computer Work with You - Not Against You Although you did not design ... read more
Dust Kills Cleaning the Unit Fan is Essential Computer Care Between taking care of the household, the kids, the pets, ... read more
Programs Included With a New Computer Are they good enough to stand on their own? The Windows operating systems already ... read more
Introduction to Programming Controlling Your Computer with a Programming Language In a previous article, we introduced automating some tasks with ... read more
Networking Home Computers Increasing Productivity With the Whole Family Have you ever thought about networking your computers at home? If ... read more
Open Source Software If you've spent any lengthy amount of time on the Internet, you've probably heard of open source ... read more
Protecting Children Online Steps Toward Making Your Computer "Weirdo-Proof" It's an unfortunate fact of reality, but children are the most ... read more
Selling Your Computer Looking At Alternatives At some point, your needs are going to outgrow the capabilities of your computer. ... read more
Smartphones What's the craze all about? If you haven't heard of smartphones, we'd like to learn where you've been hiding ... read more
Software Piracy It's Best To Avoid It At All Costs Like electronic identity theft, computer viruses, and the spread of ... read more
Understanding Compression What It Is and What's Involved Downloading files from the Internet has always been one of the most ... read more
Understanding Operating Systems Every new computer that's brought home from the store has an operating system installed onto it. But ... read more
Using Computers It's Not Rocket Science These days it's strange to hear people say, "I'm just not computer literate," as ... read more
Viruses What They Are And One Reason Why People Make Them Over recent years, computers have become synonymous with viruses ... read more
What's That File? An Introduction to File Extensions In an effort to be "user-friendly," Windows (and perhaps some other operating ... read more
When Less Is More Clean Your Disk Drive of Unnecessary Files and Your Computer's Performance Will Improve When it comes ... read more
Working With Computers In Today's Society, There's No Escape Well, we've been warned that this time would come - probably ... read more
|
|
|
Disclaimer:
The Publisher has strived to be as accurate and complete as possible in
the creation of this website, notwithstanding the fact that he does not
warrant or represent at any time that the contents within are accurate
due to the rapidly changing nature of the Internet.
This site
is a common sense guide to Automating Things with Batch Files. In practical advice websites,
like anything else in life, there are no guarantees of income made.
Readers are cautioned to reply on their own judgment about their
individual circumstances to act accordingly.
This site
is not intended for use as a source of legal, business, accounting or
financial advice. All readers are advised to seek services of competent
professionals in legal, business, accounting, and finance field.
Any
perceived slights of specific people or organizations are unintentional.
|