Create A Batch File To Open Multiple Programs At Once
Ever 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)
Related posts
- Uninstalling Internet Explorer 8 (0)
- Speed Up Windows Vista Network Performance with TCP Windows Tuning (2)
- Save space when using two drives or dual-booting (0)
- How to Move Web Applications to Your Desktop (0)
- 5 Quick FireFox Tips (0)
- Windows XP and Vista: The Benchmark Rundown (0)
- Windows Vista SP1 Security Vulnerabilities (0)
- Windows PowerShell V2 CTP2 (0)
- what is google updater and why its running? (0)
- Vista taking a nibble out of Apple in OS wars? (0)
- Use path wildcards to save time in explorer and command prompt (0)
- Unlock the supersecret Administrator account for vista (6)
- Uninstalling Vista Product Keys Activates the Platform’s Kill Switch (0)
- Switch Off Use the Web Annoyance (0)
- Recover from Reduced Functionality Mode (2)
- IE8 Beta 1 Is Live (0)
- How to open multiple home pages at startup in Mozilla firefox (0)
- Fix Windows and Internet Explorer Missing Files (0)
- Bypass MegaUpload Country Limit/Block (0)
- Windows Vista: An FAQ for Nonprofits (0)
- Windows Vista SP1 RTM Optimized Desktop (0)
- Windows Vista Application Verifier (2)
- Windows Product Keys Available Online (0)
- Windows PowerShell 1.0 (0)
- Windows Live VP To Resign (0)
Written by Jason on May 9th, 2008 with no comments.
Read more articles on 1340 and 1354 and 1426 and 1429 and 1673 and 169 and 2065 and 2157 and 401 and 544 and Browser and Contributors and Firefox and Internet and Internet Explorer and Office and Windows Vista and account and application and command and computer and excel and google and microsoft and mozilla and notepad and system32 and windows.