i created a batch file and i'm invoking three

May 12, 2009 at 04:07:52
Specs: Windows XP
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.?

See More: i created a batch file and im invoking three

Report •

May 12, 2009 at 04:52:25

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

Report •

May 12, 2009 at 22:08:01
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..

Report •

May 13, 2009 at 05:04:04
@echo off & cls

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

Report •

Related Solutions

May 13, 2009 at 05:05:46
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.

Report •

May 15, 2009 at 05:02:06
maybe this could help you out. It is a bit easier:

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

Report •

Ask Question