Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > PC Technology Zone > Windows Operating Systems and Software » Batch scripting: Startup applications and close batch file
Closed Thread
Old 01-13-2008, 04:05 PM   #1 (permalink)
 
Newb Techie

Join Date: Oct 2007

Posts: 25

LincolnX is on a distinguished road

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

LincolnX is on a distinguished road

Default Re: Batch scripting: Startup applications and close batch file

*Huhm*
LincolnX is offline  
Old 01-16-2008, 01:33 PM   #3 (permalink)
mikesgroovin's Avatar
 
HONK if you route packets

Join Date: Sep 2003

Posts: 4,664

mikesgroovin will become famous soon enoughmikesgroovin will become famous soon enough

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
__________________
A+, Net+, Sec+, Server+, Linux+, MOUS(2000 & '03), MCSE, MCSA, MCT, CNA, CCNA, CCDA, CCNP, CCSP
mikesgroovin is offline  
Old 01-16-2008, 01:34 PM   #4 (permalink)
mikesgroovin's Avatar
 
HONK if you route packets

Join Date: Sep 2003

Posts: 4,664

mikesgroovin will become famous soon enoughmikesgroovin will become famous soon enough

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.
__________________
A+, Net+, Sec+, Server+, Linux+, MOUS(2000 & '03), MCSE, MCSA, MCT, CNA, CCNA, CCDA, CCNP, CCSP
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,121

bla!! is on a distinguished road

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

__________________
<br>
Its a frigging Laptop, not a Labtop!!!!
bla!! is offline  
Old 01-16-2008, 09:34 PM   #6 (permalink)
mikesgroovin's Avatar
 
HONK if you route packets

Join Date: Sep 2003

Posts: 4,664

mikesgroovin will become famous soon enoughmikesgroovin will become famous soon enough

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.
__________________
A+, Net+, Sec+, Server+, Linux+, MOUS(2000 & '03), MCSE, MCSA, MCT, CNA, CCNA, CCDA, CCNP, CCSP
mikesgroovin is offline  
Old 01-17-2008, 03:27 PM   #7 (permalink)
 
Newb Techie

Join Date: Oct 2007

Posts: 25

LincolnX is on a distinguished road

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,121

bla!! is on a distinguished road

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.
__________________
<br>
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 On


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