Batch run to open several application

  • Thread starter Thread starter Man T
  • Start date Start date
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?
 
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"
 
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.
 
Back
Top