Windows Tip: 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)
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 (if I can only figure out how to get the calculator to open with a million dollars from my checking account….)
.
TIP: What if you only wanted to open up some applications, but you still want to have your most used applications available in a list? Check out how to create a batch file that opens applications you choose from a list.
Filed under Windows Tips, Windows Vista Tips by
Leave a Comment

Comments on Windows Tip: Create A Batch File To Open Multiple Programs At Once
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"
@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.
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
nvm i just realized that if i leave out the .exe or .app
nvm i just realized that if i leave out the .exe or .app it works*
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)
@Susan
Give some examples of what you want open, and I'll see if it can be done.
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!!
good site, very nice tips, I am openning 8 applications in single shot everyday, it is saving lot of time.
Thanks,
Hey nice site working on my experiance with Batch files,
Here's my question:
I want to open 2 files in 1 program at the same time
Example:
A movie with my subtitles how to do this?
Thanks mam, just getting into learning batch commands.
There is one command i am looking for. I want to open a foder from a gui wat. Every time i try and open a folder it just selects it from in the cmd area.
If any1 knows how to oppen a folder from batch files. please send me an email. Thank you
Hey paul its real easy all you have to do is
c:\windows\explorer.exe "folder location"
Using your example, I tried a test to get IE open the CNN news page along with a couple other files. Since I don't have Firefox on my computer, I substituted the IE pathway. However, when I tried it, I get an error saying cannot find "Files/Internet" even though I put the entire path in quotes.
start /d “C:\Program Files\Internet Explorer” IEXPLORE.EXE http://www.cnn.com
Error: Windows cannot find 'Files/Internet'. Make sure you typed the name correctly, and then try again.
Okay, I discovered the problem, quite by accident. I copied and pasted your command line, changed the firefox info to the IE info and this time it worked. I tried the altered line alongside my original line and continued to get the error when it got to mine, although both lines appeared identical.
However, looking at my file in Notepad, I noticed a slight difference. Although I had typed both in Notepad in plain text, the quote marks on my file had curls on them, whereas yours were straight quote marks. I thought to myself, "No, that can't be it, but I changed out my quotes with yours, and TA-DA! It worked.
Since Notepad does not work with font types, I'm wondering how they turned out different. Whatever it was… it works.
Thanks for the tips! I have my batch file working perfectly with one website and four program files that open up together.
Is there a way to switch between opened applications with commands.
Anyone please help..
is there any way for giving command
i want to open my broadband connection at a specific time like 2 am daily automatically
the shortcut of connecting to Internet is in "network connections" i want to know that how to make a batch file for doing this
now i want to press the "connect button " so tell me how to do that
Anyone plz help me .
im not sure exactly how but there is a command thats executed whenever the internal (bios i think) time reaches the inputted time
thanks for this i open tons of firefox pages everytime i come home just put it in the startup directory
i had a small problem with a word file but i just put it straight into c:/ lol bad idea i know but it worked
thanks!!!
thnx for those comments i learned a lot from those comments..now i can open a folder with batch files..wating for a more complex commands list in tnis site..
Thanks for easy comments; I though creating batch files is a big difficult thing but by following those steps its very smooth ……….thanks a lot.
Hi,
I just want to know using a batch file how to open web page which prompts for username and password, say example gmail.
Please let me know the cmd/code that is used in a batch file to open web pages that needs username and password
Thanks in advance,
Sree.
@Stephen Gilmartin
I wonder if you should be using something like this:
start /d "I:\Service\Service Systems\Customer Software DB\Software Sales and Billing DB" 2007-2008.xls
Note that I contained the folder, and then located the .xls file outside the brackets. Does this work for you?
Hi,
I want to open 3 command prompts those will be pointing to
cmd1 should point to 'C:\Tomcat'
cmd2 should point to 'C:\Tomcat\lib'
cmd3 should point to 'D:\Test'
Also i need to open 2 file locations(2 different windows)
1) C:\Program Files
2) D:\Lab
How can i do these all in a single bat file? I need to open the above listed windows in a single click
I want to insert a time delay after launching every application so that all applications open 1 by 1 and they dont have to fight for CPU time and slowdown the hard disk reading.
After Googling i came through this command:
"TYPE NUL | choice /c:delay /td,10 >NUL"
But it's not working or i am unable to use it,
Can anybody told me how to insert time delay in this batch file.
Thanx in Advance…
I found the solution to insert time delay in a batch file
What I am doing is that I am using ping operation to insert time delay
"ping -n 6 127.0.0.1"
The above command I am using in my batch file to insert 5 mins time delay between 2 application.
@Mat
Here you go. Create a new batch file and copy/paste.
REM Open First Command Prompt
start cmd /k cd \Tomcat
REM Open Second Command Prompt
start cmd /k cd \Tomcat\lib
REM Open Third Command Prompt
start cmd /k cmd /k /D D:\Test
REM Open First Folder
start %SystemRoot%\explorer.exe c:\"Program Files"
REM Open Second Folder
start %SystemRoot%\explorer.exe d:\Lab
Exit
@ Immi
Nice work around ; -)
Hi, im trying to install a program with the batch. but my question some programs works just fine with the batch but some is still asking me to click where the program should be installed, license aggrement and so on.. what can i do in my batch to skip all those steps and install silently??
@Robert
It depends on the program setup installation. Some allow you to use a switch (such as setup.exe /s). You may want to check with the vendor of the program or look for a readme file that details how to do this.
Thank you so much.. you are right.. not all the packages are the same… got it.. Thanks alot
Hi,
Thanks for the tip. I have a doubt. I used the command
REM Open First Command Prompt
start cmd /k cd \Tomcat
Hi,
Thanks for the tip. I have a doubt. I used the command
REM Open First Command Prompt
start cmd /k cd /D D:\Seprelease\buildwar
and this opened a command prompt pointing to the exact location. after this if i want to execute a command
D:\jdk1.5.0_01\bin\jar.exe -cvf ace.ear *
that is it should be D:\Seprelease\buildwar> D:\jdk1.5.0_01\bin\jar.exe -cvf ace.ear * in the command prompt before i hit enter. How do we make this job automated using batch. your help is most welcome
Hi,
I just want to create a batch to delete unnecessary files in the system like:
cookies
HIstory
prefetch
qurantine folder of the antivirus
temp
%temp%
recent documents files
temporay internet files
which make my system to much slow.
Even take a lot of time to delete them.
Please help me out????
how would i open the run app (this thing)http://i805.photobucket.com/albums/yy335/naruto-chan-/untitledhygjhkj.jpg
@naruto-chan
Oh, you mean how do you open the Windows start run box from the command line…
Try this (it's the 32bit version) – c:\WINDOWS\system32\rundll32.exe shell32.dll #61
it didnt work
im using windows XP
can you give me the entire thing to typed out with the
start /d "(location)" (file name)
@naruto-chan
That was for XP. If it didn't work for you, then it's not going to work with any other command in front of it.
the problem im getting is that is is opening this [IMG]http://i805.photobucket.com/albums/yy335/naruto-chan-/rutioit87iufniuw7q38.jpg[/IMG]
Can you please help me to create batch file for opening few application in some time interval and website with id and password directly after running a batch file.
Please need your help guys would be appreciate if some one descirbe with sample example
Thanks hips in advance cheers…
@Stephen Gilmartin
Try this (3 separated commands):
I:
"I:\Service\Service Systems\Customer Software DB\Software Sales and Billing DB"
"2007-2008.xls"
It worked for me (I'm using XP).
Good luck!
Can you please help me to create batch file to system restore in windows xp and windows 2000 proff.
Thanks, this helped me.. I was trying to open a program just by typing ["C:\Program Files\Sandboxie\SbieCtrl.exe"]- which opened the program but left the cmd prompt window open. using [start "C:\Program Files\Sandboxie\" SbieCtrl.exe] fixed it.
Great tip! The only thing I should notice is some words on delayed execution. If you want to start one program after another one have closed, use "&" operator between them (without commas). And if you create batch files quite often, I advice you to try Dr.Batcher (http://www.drbatcher.com). This tool is really handy but not freeware
hey guys can anyone help me with the following: i want a batch file that first closes explorer.exe and then runs it again with administrative rights (im on windows vista and it needs to be administrative)
or if you know the command to close a file/application (like "start" runs it) that would be great too
Dear Sir;
I want to create a batch file which run below command.
I have Lsclient.exe shoud run from D:\projects folder.
D:\projects\Lsclient.exe TEST5.
Test5 is my sql server.
How to create a batch file that run above command. Plase do needfull.
With Regards
bhupendra jesalpura
network admin
How do you open youtube through a batch file?
ALT+TAB: Switch between open programs
Is there a untraceable message code? If so, what is it?
Thank you so much for this simple trick.
Hi Guys,
Can you please help to delete some specific file from below directory path using batch command
D:\cdata\appdata\spPC\auxxxx\lp0001\server
# Delete all files in this directory that start with wtotsetdr*.*
DO NOT DELETE THE wTOTSETBK.* FILES!!
If the files have been deleted but it hasn't resolved the problem, then delete all files in the same directory starting with ts*.*
Please help me out????
I really appreciateyr help.
Akon
its works, but what i want i want to open each line after a short ti like 1st line then wait for 2 min then close that one and then onen 2nd one then close it then open 3rd one and close it and so on …. please help me, thanks
for example……
open http://www.gmail.com wait for 50 sec then close gmail.com and open yahoo.com then wait for 50 sec then close yahoo.com and open orkut.com then wait for 50 sec then close orkut.co and so on………
@Debabrata,
To create a pause use something like this:
"ping 127.0.0.1 -n 5 > nul".
The 5 is the pause, experiment until you are happy. Of course omit the quotation marks,
MPep
Thanks this 5 mean 5 sec time, and what i want, suppose when i run tgis bat file what i want there will be several web address like gmail.com, yahoo.com, orkut.com, google.com, etc….
1st it open gmail.com, then wait for some time which i want to customise (may be 50 sec or 40 sec) the in the same window i want to open the next address i.e. yahoo.com, then wait for some time then in the same window i want to open orkut.com, and so on.
here what happen its opening new window or tabs.. this i dont want.
Great tips on this site!
Can someone tell, if it is possible to open applications with batch command at certain display or screen coordinates when using multiple displays (dual view)?
Simply brilliant! I was having the devil of a time trying to get my Jing-produced videos directly from a PowerPoint presentation (Action Setting/Mouse Click). This was just the thing…fantastic. Thank you very much!
This is really great work. I have set it up to open 4 firefoxes to different pages, as well as thunderbird and 3 other programs. Is there a way to make them auto-arrange on the screen? Id like the 4 firefoxes on the right screen 1 in each quadrant and then the rest on the left screen with thunderbird open on the left side and the 3 other apps open in their own quadrant. Im using winsplit right now to make them all fit perfectly.
Itd be nice to be able to throw this in the startup folder and have everything set up the same way every time. I had been looking at software solutions as well. Any help is greatly appreciated!
Hey this is cool but is there a way to open up a file when you open up the folder?
like you click on the folder
and a content of the folder opens up as well?
Hey WTN, you've really helped me to open 4 firefox browsers, 2 other aplications and email client. For those who need to open separate instances of firefox browser add -new-window after firefox.exe Ex. start /d "C:\Program Files\Mozilla Firefox" firefox.exe -new-window
Now I'm trying to find a way to setup an specific size of the browser as well as it's position on the desktop.
Tanks for your help!!!
I tried this method and it did not work. Nothing opened.
I followed a method suggested by another website and all of the programs I listed opened properly.
Instead of using start /d for each line, I used Start ""
When creating the batch file with notepad do the following:
Enter path to each program you want to run in the notepad. Remember to make new lines for new programs, i.e. press Enter after one program, then write the second program, hit Enter to make a new line and then write the third program and so on.
While writing paths to new programs, put Start “” before each program. Remember to write Start, give a space, then write “” and again give a space, now write the path to the program.
This is what I created and all three programs opened:
Start "" "C:\Program Files\Registry\RCrawler\rcrawler.exe"
Start "" "C:\Program Files\Portable\Install\Revo Uninstaller\revouninstaller.exe"
Start "" "C:\Program Files\File Management\SuperFinder\SuperFinder.exe"
Thanks, but when I leave work, Excel is already open.
When I use a batch file to open an Excel file the next morning, it opens the Excel app anew (new window), and Excel complains that my personal.xls (my macros in the already-open Excel) is already open.
Any way to open a new .xls file from already-open Excel app?
Thanks
@ Sally
I'm pretty sure you can't open a new file when Excel is already open. Your best bet is to close Excel first.
I have an .exe file with some push button,text box and dialouge tab. would you please help me how can i write a batch file to run my exe file and then push my selected button or swith between tab in the program.
In other words i like to take control of my exe file and automatically do my job on that.
hey guys, pleas tell me how to make a message from batch file in a window…
r u getting me….
message should be displayed in a smaall window…. as goodmorning ram
Hi, love this batch file – I use this to open multiple browsers. My only problem is I need to open some IE browers without any extensions (add-ons) can this be done from the batch file start cmd.
I have tried to add the command -extoff to the end but this doesnt work
start iexplore.exe
@Bob:
but that would only open normal internet explorer with add ons. I was wondering if it possible to open the version u can find in acessories/program/ie no add ons
@Biscuits
Make sure you use the full path to iexplore.exe as shown (with quotes):
"%ProgramFiles%\Internet Explorer\iexplore.exe" -extoff
E:\per>start /d D:\wamp\bin\apache\Apache2.2.11\bin\httpd.exe
The current directory is invalid.
E:\per>start /d D:\wamp\bin\mysql\mysql5.1.30\bin\mysqld.exe
The current directory is invalid.
nice batch commands here! thanks for the useful tips WTN! good job
what is the possible batch file command to delete browsing history of firefox(cookies etc), iE and windows itself(temp files, visited network places that appear on run)
thanks, hoping for your reply and help thanks
more powers!
i am trying to make a batch file that shuts down comp. and also change windows login password. i know it can be done with net user * but how do i get it to input the password i want.
so far i have this, "net user chris * shutdown -f -p" after the * it will ask for password. the point of this tho is to change pw without having to type anything.and then shutdown. please help. i know this isnt related to your topic of batch files but you seem to know quite alot. thank you in advance
how can i open my doc file (ms word file) that has a password using batch file command ..thanks.
This site has helped lots, but I think I've conjured up a separate code that may perform the same action. I was trying to open "Oh my gosh.mp3", but it was only reading "Oh". Anyway, here is what I've come up with:
START C:\Users\Brandon\Music\"Oh my gosh.mp3"
I hope this helps someone.
(You will have to change the script accordingly to fit your settings):
START :\Users\\\
or START :\Program Files\\
This is really useful thanks alot.
I have it opening a couple of work programmes. Is there anyway i can get it to log me in also?
So it open's then Auto Type's my login details.
Thanks
Nick
whats wrong with you guies, what question i ask what is this answers, i want to create a batch file for monitoring my processos performance, not bulky applications, not other things.
Is there a way to open pictures with a batch file?
start /d "c:\ProgramFiles\Hypercam\Data>c:\windows\system32" rundll32 "c:\windows\system32" shimgvw.dll,imageview_fullscreen "c:\ProgramFiles\Hypercam\Data" Splash.bmp
start /d "C:\ProgramFiles\Hypercam\Data" HyCam2.exe
What am I doing wrong?!
hi all,
im trying to make a batch file that would accept parameters that are needed to decrypt a certain file. the exact command that i need to do is
gpg –output [filename of decrypted file] –decrypt [filename of encrypted file]
my windows application will call the batch file and send the parameters thru it. is this possible?
thanks in advance!
Hi All
im trying to make a batch file that will do the following things.
1. should move to the given path
c:\input\processed\redwine
2. should check whether there is any new file received for the current date.
e.g. 100010_redwine_exp.txt
3. if file has been received for current date then should check the file is not '0' kb file.
if file not '0' kb,
the output on the screen should be "file received" and exit the command prompt
if the file is '0' kb then
the output on the screen should be "file received but no data" and exit the command prompt
if no file has received then
the output on the screen should be "file not received" and exit the command prompt
can any one help me on this please.
kindly let me know for any clarification.
regards
Joseph
do your homework, PUNK.
Please help my!
How can I make a .bat file (or something else) that someone can install it in the computer and, after
installing, the computer must open this automatically
start /d "C:\Program Files\Mozilla Firefox" firefox.exe
http://www.google.com
after 10 minutes after openning it, everytime he openes the computer.
Hey guys,
Will u plz help mi to create batch file for running Turbo c.
M accessing turbo c through DosBox0.72
and also let me know how to create batch file for directly running any program of c and c++ after it is compiled once.
Thanking U in advance.
Is there a way in a batch file to close a Windows program? I want to open Firefox and then close it after a few seconds.
Thanks.