Revo Uninstaller Share a Firefox Profile Between Ubuntu and Windows Snipping Tool for Vista Firefox Profile Backup Top 10 URL-Related Extensions
Collapsed This Week Collapsed CyberNotes
Collapsed Last Week

CyberNotes
Tutorial Thursday


In the past we’ve shown you how to create batch files for synchronizing two folders, and today we’re going to demonstrate how they can be used to launch your favorite applications. If you’re like me you probably start the same applications every morning, such as your feed reader, web browser, and your calendar. If that’s the case then you’ll be in love with what I’m about to show you. In under a minute you can create a batch file to launch several applications, documents, files, and more in a single click.

What some people don’t realize is that you can also use this method to reduce the startup time of your computer! It’s likely that you have at least a handful of applications that startup with Windows which you don’t need immediately. Things like an instant messenger or email checker. You can place all of those applications into a single batch file, remove them from the startup list, and then just run them when you’re ready.

Update: Be sure to checkout how you can use a batch file to close multiple programs as well.

You may think that doing something like this is a tedious process, but it’s actually rather easy:


–Instructions–

  1. Open Notepad (Start Menu -> Accessories -> Notepad):
    Notepad
  2. Get the paths for the programs you want to start. The easiest way to do this is to right-click on each of the existing shortcuts, choose the Properties option, and then copy the Target path.
    Target Properties
  3. Enter the paths for each of the programs into Notepad, one per line. Be sure to put

    start "" 

    at the beginning of each line, and put a space after it to separate it from the application path. If the path of your application has a space in it, you’ll need to surround the entire path with quotes. It should look something like this:
    Multiple Shortcuts in Notepad

  4. Save it as a .BAT file by manually entering in the extension at the end of the file name.
    Save BAT
  5. Double-click on the new file that you just created to test out the results.

–Examples–

There are all kinds of things that this can be used for, especially since you can throw parameters onto each of the applications. Let’s say you wanted to open our website in Firefox, one of the lines would look like this:

start "" "C:\Program Files\Mozilla Firefox\firefox.exe" "cybernetnews.com"

You can also have it open a document by providing the path to it, like this:

start "" "C:\Users\Wagner\Documents\CyberNet.doc"

In the end you can create several different batch files each for different tasks. Batch files are powerful tools that can greatly enhance your productivity, and this is one of the ways they do that.

Thanks to Tim for asking us how to do something like this!

RSS Icon This is just one of the hundreds of CyberNotes we have done. You can find more of them by visiting our CyberNotes category, or by subscribing to our CyberNotes feed. We also have a full feed available if you want to receive all of our articles in your reader!

Tags: CyberNotes, Software, Windows, , ,

Previous ArticleNext Article
 

Related Posts:


11 Unread Comment Tracking CyberMark This Article
RSS Icon
11

  1. Avatar

    Now, that helped a lot. Thank You.
    A Lot of Batch files are being born on my desktop….

  2. Avatar

    That was really helpful!
    I’m always closing tray applications for games, then re-launching them.
    This has saved me a lot of regular hassle.

    Now, i notice the ‘Start’ there, would i be able to CLOSE the same applications by simply changing ’start’ to ‘close’?

    That could save even more time, by cutting out all the expand system tray>RightClick>Close>repeat stuff.

    Anyway, great tip, thanks ^_^

  3. Avatar

    Then you should learn windows commands http://www.ss64.com/nt/

  4. Avatar

    This is extremely useful. Thanks for posting this!

    BTW: Is there a way to change the icon for this?

  5. Avatar

    Very awesome post - and thanks to kvascola for the other link too. Been playing around with this trying to find good ways to optimize my tedious tasks through the day. :)

  6. Avatar
    karmalily wrote:
    This is extremely useful. Thanks for posting this!

    BTW: Is there a way to change the icon for this?

    You can’t change bat’s icon (at least I think so).
    But there’s a nice trick:
    - Create the .bat file following the instructions above
    - “Hide it”. Put the file on any folder you prefer (C:\Documents and Settings\YourUser\MyShortcuts for example)
    - And make a shortcut to the .bat file (yes, a shortcut from a shortcut :lol: )

    You can change the icon of the bat’s shortcut as you will.

  7. Avatar
    Shrihari wrote:
    Now, that helped a lot. Thank You.
    A Lot of Batch files are being born on my desktop….

    :) I’m glad you’re finding use for these. I only have three of them for this purpose, but you must have a lot of different programs.

    ExitRitual wrote:
    That was really helpful!
    I’m always closing tray applications for games, then re-launching them.
    This has saved me a lot of regular hassle.

    Now, i notice the ‘Start’ there, would i be able to CLOSE the same applications by simply changing ’start’ to ‘close’?

    That could save even more time, by cutting out all the expand system tray>RightClick>Close>repeat stuff.

    Thanks for pointing that out. It’s such a great idea that I might use it for a followup article. :)

    karmalily wrote:
    BTW: Is there a way to change the icon for this?

    Brunofs went through the only solution that I know of, but it kinda doesn’t seem worth going through the hassle.

  8. Avatar

    Awesome tip man! I will probably use this to launch the browser + music player combo.

  9. Avatar
    karmalily wrote:
    This is extremely useful. Thanks for posting this!

    BTW: Is there a way to change the icon for this?

    Try Stardock’s IconDeveloper. It lets you change icons of specific files of the same type.
    Install, then right click the file whose icon you want to change. there will be a icon tab on the right. check “changeth con ifor this file only…. :idea:

  10. Avatar

    I want to create a bat file to execute opening a webpage then automatically login with my credential with an excel file. Can I do this with .bat or will I need to use java too.

    Can anyone please give me some tips.

  11. Avatar
    Marc wrote:
    I want to create a bat file to execute opening a webpage then automatically login with my credential with an excel file. Can I do this with .bat or will I need to use java too.

    You definitely won’t be able to do that using only a batch file. That will require interaction with your web browser.

:mrgreen: :| :twisted: :arrow: 8O :) :? 8) :evil: :D :idea: :oops: :P :roll: ;) :cry: :o :lol: :x :( :!: :?:

Note: All links posted in comments will automatically be hyperlinked.

↓ Expand Text Area  or  Decrease Text Area ↑

 Find out how to track new comments!


 

  1. There aren't any trackbacks or pings yet. You can be the first by using this trackback URL.