Home » Uncategorized

Automate tasks using batch files

12 January 2009 2 Comments

Written by Rubin Geo Varghese

Wel, many people think batch files are mostly things of the past. Sometimes, though, a well-conceived batch file is just the thing to automate the job you want to do.

Open up Notepad, write the code and click “Save As”. You can name the file anything you want, but ensure you change the view to “all files”, and put a .bat on end of the file, e.g. multimedia.bat. After all it should not be ending with ***.bat.txt

A few examples of what a batch file can do:

Load up a Program

We can use a batch file to load up any application or utility we might need to do a set task.

The command line to open up Winamp from the command line is:

Start "" "C:\Program Files\Winamp\winamp.exe"

Load up documents

We are not limited to launching only programs. We can extend batch files to open up documents.

Start "" "C:\Documents and Settings\Username\My Documents\document.doc"

Load up Websites

As well as launching programs and documents, we are able to launch our browser with a particular website. This could be handy if you want to load a TV guide from a website along with TV viewing software.

The command to make this happen is as below:

Start "" "C:\Program Files\Internet Explorer\iexplore.exe" http://www.inspectmygadget.com

Load up an Environment

If you want to launch multiple programs at once, repeat the above example for each program, document or website, e.g.

Start "" "C:\Program Files\Winamp\winamp.exe"
Start “” “C:\Program Files\TechSmith\SnagIt 8\SnagIt32.exe”
Start “” “C:\Program Files\Microsoft Office\Office12\winword.exe”

This batch file will launch Winamp, SnagIt and MS Word all at the same time.

Conclusion:

Batch files are not going to make your computing experience feel modern or high tech, but they have the potential to really speed up the loading of your applications.

Google Buzz
  • Share/Bookmark

READ SIMILAR POSTS

  1. Protect PC from USB Viruses
  2. Speed up your PC
  3. Tweak your WINAMP
  4. 100 shortcuts in windows….
  5. Google GDrive is for Online File Backup and Storage
  6. KeyBoard ShortCuts for Mozilla FireFox
  7. Make a CD AutoRun

2 Comments »

  • admin
    admin said:

    this is quite useful information.

    [Reply]

  • Rubin Geo Varghese
    Rubin Geo Varghese (author) said:

    this post will find useful only to those who used to get in touch with batch files,,others may not,,
    itz not just loading of pgms, bt automation of tasks which can b accomplished if a lot of tasks needed to complete within a short span of time(with seconds),,,

    [Reply]

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.

;