Ask Experts Questions for FREE Help!
Ask    ||    Answer
 
Advanced  
 

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Other Programming   »   How can i write a "bat" file that will run same exe file multiple times ?

 
Thread Tools Search this Thread Display Modes
Question
 
 
#1  
Old Oct 1, 2009, 08:07 PM
John Bold
New Member
John Bold is offline
 
Join Date: Feb 2009
Posts: 25
John Bold See this member's comment history on his/her Profile page.
How can i write a "bat" file that will run same exe file multiple times ?

i'm struggling with writing my bat file recently.

it's a basic *.bat file that is going to do some stuff on the command line.
i have wrote a basic bat file that runs ***.exe file on the command line (that is going to re-flash cell phones). but i want it to run the same exe files two times. it's a kind a exe files that starts in windows' window. but i want to open multiple windows (. Like, i want to run same exe file in different windows in order to re-flash couple phones at the same time in different windows...

basically, i wrote the name of the exe file 2 times bottom of the first one on the edit page but, it waits for first programs to be end to open second window.

if you know how do you write simple bat files to accomplish simple ms-dos commands i think, it's pretty easy for you !!!

my question is what line or command should i add to my bat file to make my bat file run exe file 2 or multiple times in different windows without wait for first one's end ???

Reply With Quote
 
     

Answers
 
 
Old Oct 2, 2009, 05:35 AM   #2  
Ultra Member
Perito is offline
 
Perito's Avatar
 
Join Date: Feb 2009
Location: USA
Posts: 2,865
Perito See this member's comment history on his/her Profile page.Perito See this member's comment history on his/her Profile page.
This batch file will launch a program (Windows Calculator) repeatedly. The START command launches the program, the WAIT program waits until it's finished. The PAUSE command probably won't be necessary for what you wish to do.

If you remove the "WAIT", you'll get multiple copies of calculator running. In fact, if you let this run without the PAUSE, you'll have more copies of calculator than you can deal with.

here's a link to information on the START command

MS-DOS start command help

:BEGIN
START/WAIT C:\WINDOWS\system32\CALC.EXE
PAUSE
GOTO BEGIN

Comments on this post
John Bold agrees: %100 accurate and fast response
  Reply With Quote
 
     
 
 
Old Oct 4, 2009, 12:06 AM   #3  
New Member
John Bold is offline
 
Join Date: Feb 2009
Posts: 25
John Bold See this member's comment history on his/her Profile page.
Thanks a lot !! this is what i was looking for...
  Reply With Quote
 
     

Your Answer
Email me when someone replies to my answer
Join Login





Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

 
Similar Sponsors


Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page

Similar Threads
Outlook 2003 error "The System Cannot Find The Specified File"
(0 replies)
convert A.Illustraor "letterhead" file to Word file to type letters in
(2 replies)
F1, J1 and "pending lawful permanent resident". what form to file?
(5 replies)
Ex-Girlfriend wants to get back together - Slept with "friend" multiple times
(2 replies)
judgement dispute results in change to "no longer in file"
(0 replies)

Search this Thread

Advanced Search

Bookmarks

Sponsors



Copyright ©2003 - 2009, Ask Me Help Desk.
All times are GMT -8. The time now is 05:39 PM.