pc.jpg

STOP spending your hard earn money by having someone else fix your Computer. Do it yourself and save a bundle of cash.
Click for more info --> Windows PC Troubleshooting Unleashed!

Windows Tip: Create A Batch File To Open Multiple Programs At Once

winlogo.jpgEver have the need to open more than one program or application at the same time?

Say it's the beginning of the month and time to pay those dreaded bills. You know you need Excel, Windows calculator and Firefox or Internet Explorer open. Instead of opening them up one by one, you can easily create a batch file that will open all three programs at once.

And while your at it, why not have Excel open the spreadsheet file you use for tracking your budget and the browser open to your Bank's home page. Here's how to do it…

First let's take a look at a batch file I created that will just open Excel, Calculator and Firefox:

NOTE: Examples and file paths are from Windows Vista. XP paths will probably be different for some programs as well as for MS Office (Office 2007 is used in the example).


start /d C:\Windows\System32\calc.exe
start /d "C:\Program Files\
Mozilla Firefox" firefox.exe
start /d "C:\Program Files\Microsoft Office\Office12" EXCEL.EXE


Pretty simple.

The above command, start tells Windows to open a separate window to run the specified program.

The /d switch tells start command the path of the program. For starting Excel and Firefox, notice that the paths are in quotes, which is needed when there is a space in the file path.

Now it's great that all three programs open, but since it's time to pay your bills, you need to have Excel open that budget spreadsheet and Firefox open to your Bank home page so you can log on and access you checking account.

Here's how the commands look in the batch file to do this:


start /d C:\Windows\System32\ calc.exe
start /d "C:\Program Files\Mozilla Firefox" firefox.exe https://www.bankofamerica.com
start /d C:\finance\spreadsheets budget.xls


To open Bank Of America home page with Firefox, just add the URL to end of the command as shown above using https://www.bankofamerica.com.

To open the Excel spreadsheet, budget.xls you don't need to first open Excel. budget.xls can be opened directly using the start command, as long as the extension or file type is associated to the program.

If you need Firefox to open more than one URL, say to Google, just add the URL like this (make sure you use a space in between URL's):

start /d "C:\Program Files\Mozilla Firefox" firefox.exe https://www.bankofamerica.com www.google.com

Now you're probably saying "that's great, but how do I create a batch file?".

That's the easy part.

  • Just open up Notepad or your favorite text editor.
  • Copy the commands from above and modify them to use which ever program or Office files you want open. Make sure when you copy file and folder paths that have spaces, to use quotes.
  • Then save the file with any name and a .bat extension (make sure it's not saved using .txt as the file type extension)

Now when you want to open up multiple programs or applications, just double click on the batch file and you're ready to pay the bills .

Now, if I can only figure out how to get the calculator to open with a million dollars from my checking account….

Filed under Windows Tips, Windows Vista Tips by

Comment

Comments on Windows Tip: Create A Batch File To Open Multiple Programs At Once »

May 20, 2008

Stephen Gilmartin @ 8:37 am

This is a cool tip. Every morning I open 6 applications and this has really saved me time. I am really enjoying this site.

I have one question.

I can't get the code below to start Excel and open a specific work book??

start /d "I:\Service\Service Systems\Customer Software DB\Software Sales and Billing DB 2007-2008.xls"

Watching The Net @ 11:49 am

@Stephen Gilmartin

Thanks for the kind words.

Try using the command with out the /d option…

start "I:\Service\Service Systems\Customer Software DB\Software Sales and Billing DB 2007-2008.xls"

Let me know if that fixes it.

May 28, 2008

Caleb @ 2:19 pm

Hey dude very cool but only one thing tho, how to i open application type files or is that just something ill have to do myself

Caleb @ 2:25 pm

nvm i just realized that if i leave out the .exe or .app

Caleb @ 2:26 pm

nvm i just realized that if i leave out the .exe or .app it works*

June 25, 2008

Susan @ 11:09 am

Is There Any Way To Do This When The Files Have A Different Name Each Time? Namely, Override Vista's New Feature That Won't Allow Multiple Files Types To Be Opened At The Same Time Because The Same Program Cannot Open Them All? (Sorry For Crazy Caps… Researching On My Cell Phone)

June 26, 2008

Watching The Net @ 7:01 am

@Susan

Give some examples of what you want open, and I'll see if it can be done.

Susan @ 8:25 am

Last, First 12345.dss -> Opens in ExpressScribe
Last, First 12345.tif -> Opens in MS Office Document Imaging
Last, First 12345.doc -> Opens in MS Word 03

=) Thanks for the help!!

July 19, 2008

sreenivas valaboju @ 3:44 am

good site, very nice tips, I am openning 8 applications in single shot everyday, it is saving lot of time.
Thanks,

Leave a Comment

Subscribe without commenting