Computing.Net > Forums > Programming > i created a batch file and i'm invoking three

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.

i created a batch file and i'm invoking three

Reply to Message Icon

Name: saviorshashi
Date: May 12, 2009 at 04:07:52 Pacific
OS: Windows XP
Subcategory: Batch
Comment:

i created a batch file and i'm invoking three programs in it one by one.
but when i click on batch file all three programs are running simultaneously..
so how to execute them one after the other.?



Sponsored Link
Ads by Google

Response Number 1
Name: lee123abc
Date: May 12, 2009 at 04:52:25 Pacific
Reply:

JUST TYPE THE NAMES OF YOUR PROGRAMS INSTEAD OF THESE
ENJOY

@echo off & cls
mspaint.exe %1
NOTEPAD.exe %1


0

Response Number 2
Name: saviorshashi
Date: May 12, 2009 at 22:08:01 Pacific
Reply:

first program is writting an xml file.
second one is java program to read that file.
third one is updating excel sheet based on the execution (result) of java program..


0

Response Number 3
Name: lee123abc
Date: May 13, 2009 at 05:04:04 Pacific
Reply:

@echo off & cls

::PROGRAM 1
notepad.exe %1

::PROGRAM 2 - will only run when program 1 has been closed
mspaint.exe %1

::PROGRAM 3 - will only run when program 2 has been closed
calc.exe %1

::As you can see these are examples.
:: replace notepad.exe mspaint.exe and calc.exe
:: with YOUR program names.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: If you are still stuck, then maybe someone with better knowledge can help you out.
:: because this works for me. (Maybe I am missing something?!)
:: Good Luck


0

Response Number 4
Name: lee123abc
Date: May 13, 2009 at 05:05:46 Pacific
Reply:

mate, copy what I wrote into 3programs.bat

then double click the bat file and it shouldd open one program at a time.

then replace my program names with your program.... I hope this helps.


0

Response Number 5
Name: lee123abc
Date: May 15, 2009 at 05:02:06 Pacific
Reply:

maybe this could help you out. It is a bit easier:


@echo off & cls
notepad.exe && mspaint.exe && calc.exe


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






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: i created a batch file and i'm invoking three

Create a batch file to rename text www.computing.net/answers/programming/create-a-batch-file-to-rename-text/14900.html

Newbie creating a batch file www.computing.net/answers/programming/newbie-creating-a-batch-file/16676.html

Make an exe with a batch file and.. www.computing.net/answers/programming/make-an-exe-with-a-batch-file-and/17595.html