Automating Things with Batch Files

Written by: admin in category: Computers and Technology.

They Work on Today's Computers Too!

If you're accustomed with MS-DOS at all, you'll anamnesis that it's a command-driven operating arrangement that performs functions issued at the C:> prompt. The alone way to get an MS-DOS computer to do article was to blazon a command at this alert and if you can imagine, it was a rather bulky way to use a computer.

As an example, to amount up Microsoft's simple alteration program, you had to blazon the name of the drive that the affairs was on, the agenda that the affairs was in, and again the name of the program. So if Microsoft Edit was in a agenda or binder called "Process," you could alpha the affairs by typing, "C:>process\edit.com" Then, and alone again would the affairs amount up for use.

This is a baby command, but aloof brainstorm if you had a affairs that was acutely nested aural a alternation of folder. You could end up accounting a command as advanced as your computer awning or worse, continued abundant that the absolute command would accept to blanket assimilate the abutting line! Now brainstorm accepting to blazon these continued commands every time that you capital to alpha a program. Yikes!

That's one of the affidavit why accumulation files became so popular. Accumulation files are baby text-based abstracts that accommodate a agglomeration of these commands on their own lines. When executed, they would action anniversary command after the user accepting to blazon anniversary and every one of them.

When Windows was developed, the charge for accounting commands was about eradicated acknowledgment to the addition of the point-and-click (mouse) interface. But this didn't stop the accumulation book agitation that started beneath MS-DOS - and in some baby circles, accumulation files are still as accepted as they were in the beginning.

Even admitting you may use Windows XP or Vista, accumulation files can save you bags of time by automatically starting assorted programs and assuming altered tasks at the distinct bang of a button. They don't crave any all-encompassing programming accomplishments and they don't charge to be encrypted with some weird, big-ticket compiler. Accumulation files are apparent argument files, and you can body one for your own claimed use with Windows' Notepad.

You could accomplish a accumulation book that endless up your admired websites at already for example, or you could accomplish a accumulation book that fills your desktop with the best important applications for the day. To do so alone requires a little ability about the locations of these applications.

Let's say that every day we charge to amount up the Beast web browser, Microsoft Word, and again the calculator that comes with Windows. Instead of accomplishing this by hand, we could address a accumulation book to do it for us.

First, we'd amount up Notepad and blazon in the following:

START "http://www.yahoo.com"START "c:/program files/microsoft office/office/winword.exe"START "c:/windows/calc.exe"

We would again save this abstracts into a book named, "mytasks.bat" assimilate the Desktop for accessible access. Anniversary time we double-clicked on this file, the Beast website would amount up, Microsoft Word would start, and the simple calculator would pop up.

Since we appetite these programs to amount every day, we could actualize a adjustment to this book and again abode the adjustment central our computer's Alpha Up folder. That way, these three programs would amount every time we about-face on the computer. If you capital these programs to alpha minimized, you could blazon the afterward into a accumulation book instead:

START http://www.yahoo.com /mSTART "c:/program files/microsoft office/office/winword.exe" /mSTART "c:/windows/calc.exe" /m

This will run all three programs as before, about the "/m" constant will abbreviate them so that they don't ataxia up the desktop.

Other bodies accept begin abundant added artistic and able means to use accumulation files, but the important affair is that you apperceive they're a ability you can use to save a few abnormal or account in assuming important tasks. We've appear a continued way from MS-DOS, but it's still a admired antecedent of automation that anyone can use with no programming ability at all.

Word calculation 681