PC Review


Reply
Thread Tools Rate Thread

Batch run to open several application

 
 
Man T
Guest
Posts: n/a
 
      10th Sep 2008
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?


 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      10th Sep 2008

"Man T" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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"


 
Reply With Quote
 
Man T
Guest
Posts: n/a
 
      10th Sep 2008
> 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.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
batch file for unattended application install needlove Microsoft Windows 2000 CMD Promt 4 10th Apr 2007 04:44 PM
Quit application from a batch file. =?Utf-8?B?RG9uIFN0YXJuZXM=?= Microsoft Windows 2000 4 4th Dec 2004 01:39 PM
stop an application using a batch file Paul Microsoft Windows 2000 Applications 1 30th Sep 2004 02:28 PM
batch template application Cagdas Ozgenc Microsoft Word Document Management 2 10th Oct 2003 09:17 AM
batch template application Cagdas Ozgenc Microsoft Word New Users 2 10th Oct 2003 09:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:23 PM.