

S tart /d "C:\Program Files\ Mozilla Firefox " firefox.exe Now you're probably saying " that's great, but how do I create a batch file?".

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): budget.xls can be opened directly using the start command, as long as the extension or file type is associated to the program. To open the Excel spreadsheet, budget.xls you don't need to first open Excel. To open Bank Of America home page with Firefox, just add the URL to end of the command as shown above using. Start /d C:\finance\spreadsheets budget.xls Start /d "C:\Program Files\ Mozilla Firefox " firefox.exe Here's how the commands look in the batch file to do this: 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. For starting Excel and Firefox, notice that the paths are in quotes, which is needed when there is a space in the file path. The /d switch tells start command the path of the program.
#GUI VERSION OF BATCH FILE RENAME FILE WITH SPACE IN IT WINDOWS#
The above command, start tells Windows to open a separate window to run the specified program.

Start /d "C:\Program Files\Microsoft Office\Office12" EXCEL.EXE XP paths will probably be different for some programs as well as for MS Office (Office 2007 is used in the example). NOTE: Examples and file paths are from Windows Vista. First let's take a look at a batch file I created that will just open Excel, Calculator and Firefox:
