Batch file .EXE runner (crap title, info inside)

Associate
Joined
18 Aug 2005
Posts
913
Location
Wirral, UK.
I'm trying to make a batch file that will run my apps after I've been gaming (Winamp, Trillian, Avast, Samurize, what-not)... I've made a taskkill one to close all the apps I use before gaming, just having a bit of trouble getting it to work with opening them again.

I have googled, but came up with nowt.

Any chance of some example code?

I appreciate any help,

ta.
 
Soldato
Joined
12 Jun 2005
Posts
5,361
You just put the patch to the exe file don't you?

example below:

Code:
"C:\Program Files\ID3-TagIT 3\ID3-TagIT.exe"

Hope that helps, you may need to enclose it in quotes...

[Edit]

You do need to enclose in quotes if there are spaces in the path to the exe file
 
Last edited:
Associate
OP
Joined
18 Aug 2005
Posts
913
Location
Wirral, UK.
Code:
@echo off
start "C:\Program Files\Samurize\client.exe"
start "C:\Program Files\Winamp\Winamp.exe"
start "C:\Program Files\Winamp\Winampa.exe"
start "C:\Program Files\trillian\trillian.exe"
start "C:\Program Files\Abyss Web Server\abyssws.exe"
start "C:\Program Files\Creative\JBseriesDRV\CTPdeSrv.exe"
start "C:\WINDOWS\BricoPacks\Vista Inspirat\ObjectDock\ObjectDock.exe"
start "C:\Program Files\Alwil Software\Avast4\Ashdisp.exe"
start "C:\Program Files\Alwil Software\Avast4\AshMaiSv.exe"
start "C:\Program Files\Alwil Software\Avast4\ashServ.exe"
start "C:\Program Files\Alwil Software\Avast4\ashWebSv.exe"
start "C:\Program Files\Alwil Software\Avast4\aswUpdSv.exe"
start "C:\Program Files\Java\jre1.5.0_06\bin\jusched.exe"
start "C:\Program Files\Windows Defender\MSASCui.exe"
start "C:\Program Files\Windows Defender\MsMpEng.exe"

exit

^ is what I've got. At the moment, that just runs what appears to be 15 command prompts, but no programs.

If I lose the start command from the start, It opens the programs, but only one for each time I open the batch file. Eg: First run, Samurize loads, second run, Winamp loads, third run, Winamp agent loads, etc. (and the command prompt stays, doesn't close)

So yeah. I'm stumped.
 
Last edited:
Soldato
Joined
18 Oct 2002
Posts
16,281
Location
Manchester
Excellent thread :) I have made myself a Game.bat file - which loads xfire, steam and teamspeak minimized (with teamspeak automatically connected and logged in to the server I use.

I then assigned the word "game" to my slick run program :)

That way when I type "game" all three load :D

When I finished I type "off" and it kills them :D so thank you for all the info contained in here.

Was a great help to me to get it all running :)
 
Back
Top Bottom