Computing.Net > Forums > Programming > Batch File - Starting 5 Application

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch File - Starting 5 Application

Reply to Message Icon

Name: chrigil
Date: January 26, 2006 at 13:41:42 Pacific
OS: Windows XP
CPU/Ram: 1.4Ghz 512Mb
Comment:

I have absolutely no experience writing Batch files but I learnt how to open a program using the:

START /MAX IEXPLORER.exe

I want to open 5 applications which I can do successfully
but the trouble is I can't control when the apps open or in
what order.

Could I use a delay of 5 seconds for instance in order to
give each application time to start.

What is the best way to get the apps to open in the correct
order.

Thanks in advance,

Chris



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: January 26, 2006 at 20:46:13 Pacific
Reply:

Hi Chris,

I guess what you mean by "in the right order" is that they all get the cue to start at nearly the same time, but some take much longer than others.

[A monster like winword takes longer than EDIT.]

You can script in a delay.

::== Chris.bat
start winword.exe
ping 1.1.1.1 -n 1 -w 5000

start edit.exe
:: and so on down the line
:: DONE

The last number in the ping line is the delay in ms, so in this case, 5 seconds.



If at first you don't succeed, you're about average.

M2


0
Reply to Message Icon

Related Posts

See More


Copying favorites to map ... Rename Multiple Files



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch File - Starting 5 Application

Batch File - Start in a new window www.computing.net/answers/programming/batch-file-start-in-a-new-window/13899.html

Batch file hang www.computing.net/answers/programming/batch-file-hang/14248.html

Help fix PING batch file www.computing.net/answers/programming/help-fix-ping-batch-file/19510.html