Jump to content

Batch run to open several application


Recommended Posts

Posted

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?

  • Replies 2
  • Created
  • Last Reply

Popular Days

Guest Pegasus \(MVP\)
Posted

Re: Batch run to open several application

 

 

"Man T" <alanpltse_NOSPAM@yahoo.com.au> wrote in message

news:%23CxXcawEJHA.3616@TK2MSFTNGP02.phx.gbl...

> 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"

Posted

Re: Batch run to open several application

 

> 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.


×
×
  • Create New...