Batch run to open several application

M

Man T

This is my batch file:

"C:\Program Files\Microsoft Office\OFFICE11\excel.exe"
"C:\windows\notepad.exe"

I got 2 problems:
1) If I run this batch from Windows Explorer by double_clicking the batch
file, the Excel will be triggered and the DOS prompt appear. Only if I close
the Excel, the Notepad will come out.

2) If I run this batch file from Installation program (I am using
InstallShield), Excel comes up and also the DOS prompt. Even I close the
Excel, the Notepad will NOT come up.

Anything I can do in the batch file contents? Any switch at the end of the
string?
 
P

Pegasus \(MVP\)

Man T said:
This is my batch file:

"C:\Program Files\Microsoft Office\OFFICE11\excel.exe"
"C:\windows\notepad.exe"

I got 2 problems:
1) If I run this batch from Windows Explorer by double_clicking the batch
file, the Excel will be triggered and the DOS prompt appear. Only if I
close the Excel, the Notepad will come out.

2) If I run this batch file from Installation program (I am using
InstallShield), Excel comes up and also the DOS prompt. Even I close the
Excel, the Notepad will NOT come up.

Anything I can do in the batch file contents? Any switch at the end of the
string?

Try this:
@echo off
start /b "Excel" "C:\Program Files\Microsoft Office\OFFICE11\excel.exe"
start /b "Notepad" "C:\windows\notepad.exe"
 
M

Man T

Try this:
@echo off
start /b "Excel" "C:\Program Files\Microsoft Office\OFFICE11\excel.exe"
start /b "Notepad" "C:\windows\notepad.exe"

Thanks.
It managed to open Excel and Notepad when I double-clicked from Windows
Explorer.
However, when I run my InstallShield installer, it still only opened the
Excep application and the DOS prompt still sits there.
Anyway, I need to post the question to InstallShield forum to see it they
can help me.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top