Batch scripting: Startup applications and close batch file - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 01-13-2008, 04:05 PM   #1 (permalink)
Newb Techie
 
Join Date: Oct 2007
Posts: 25
Default Batch scripting: Startup applications and close batch file

I am looking for a way to startup multiple applications with batch scripting. After the batch file has been executed it has to be closed automatically.

for example:

Code:
"C:\Program Files\Wos_Portable\wos.exe"
"C:\Program Files\Internet Explorer\iexplore.exe http://127.0.0.1/"
The code will run WOS and Internet Explorer, but the batch file won't shutdown until I have closed wos and iexplore.

Any idea's how to fix this?
__________________

LincolnX is offline  
Old 01-16-2008, 01:03 PM   #2 (permalink)
Newb Techie
 
Join Date: Oct 2007
Posts: 25
Default Re: Batch scripting: Startup applications and close batch file

*Huhm*
__________________

LincolnX is offline  
Old 01-16-2008, 01:33 PM   #3 (permalink)
HONK if you route packets
 
mikesgroovin's Avatar
 
Join Date: Sep 2003
Location: MD
Posts: 4,715
Default Re: Batch scripting: Startup applications and close batch file

There's something you have to put before the program name ....
Let me dig around
mikesgroovin is offline  
Old 01-16-2008, 01:34 PM   #4 (permalink)
HONK if you route packets
 
mikesgroovin's Avatar
 
Join Date: Sep 2003
Location: MD
Posts: 4,715
Default Re: Batch scripting: Startup applications and close batch file

ok, found it, add:

Code:
start ""
to the beginning to make:

Code:
start "" "C:\Program Files\Wos_Portable\wos.exe"
start "" "C:\Program Files\Internet Explorer\iexplore.exe http://127.0.0.1/"
Pretty sure that you have to place the

Code:
start ""
prior to each program... not 100% on that though.
mikesgroovin is offline  
Old 01-16-2008, 09:20 PM   #5 (permalink)
Monster Techie
 
Join Date: May 2004
Location: /usr/root/mn/us
Posts: 1,118
Default Re: Batch scripting: Startup applications and close batch file

all you need is this

Code:
start "C:\Program Files\Wos_Portable\wos.exe"
start "C:\Program Files\Internet Explorer\iexplore.exe http://127.0.0.1/"
exit
__________________

Its a frigging Laptop, not a Labtop!!!!
bla!! is offline  
Old 01-16-2008, 09:34 PM   #6 (permalink)
HONK if you route packets
 
mikesgroovin's Avatar
 
Join Date: Sep 2003
Location: MD
Posts: 4,715
Default Re: Batch scripting: Startup applications and close batch file

Quote:
Originally Posted by bla!! View Post
all you need is this

Code:
start "C:\Program Files\Wos_Portable\wos.exe"
start "C:\Program Files\Internet Explorer\iexplore.exe http://127.0.0.1/"
exit
XP handles the cmd line differently than older versions of the command line... pretty sure that wont work.
mikesgroovin is offline  
Old 01-17-2008, 03:27 PM   #7 (permalink)
Newb Techie
 
Join Date: Oct 2007
Posts: 25
Default Re: Batch scripting: Startup applications and close batch file

Quote:
Originally Posted by mikesgroovin View Post
XP handles the cmd line differently than older versions of the command line... pretty sure that wont work.
Thanks!! it works!!!
LincolnX is offline  
Old 01-17-2008, 08:50 PM   #8 (permalink)
Monster Techie
 
Join Date: May 2004
Location: /usr/root/mn/us
Posts: 1,118
Default Re: Batch scripting: Startup applications and close batch file

Quote:
Originally Posted by mikesgroovin View Post
XP handles the cmd line differently than older versions of the command line... pretty sure that wont work.
When you put the "" in there all you're telling it is to use a blank title for the window. Type start /? at a command prompt and you'll see all the options.
__________________

__________________

Its a frigging Laptop, not a Labtop!!!!
bla!! is offline  
Closed Thread

Thread Tools
Display Modes

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
friends really bad log..needs some major help here. Static_11 HijackThis Logs (finished) 17 12-07-2007 09:44 AM



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 11:17 AM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.