PDA

View Full Version : Help me with this simple batch file


Larimani
11-14-2005, 01:46 AM
I'm trying to create a .bat file that would open PT, PA and Pokerstars client thus saving me a few clicks everytime I want to play poker.

I tried this but it doesn't work (it only starts PT and starts PA only after I close PT):

"C:\Program Files\Poker Tracker V2\ptrack2.exe"
"C:\Program Files\PokerAce Hud\PAHud.exe"
"C:\Program Files\PokerStars\Pokerstars.exe"

What am I doing wrong?

astroglide
11-14-2005, 02:38 AM
start "" "C:\Program Files\Poker Tracker V2\ptrack2.exe"
start "" "C:\Program Files\PokerAce Hud\PAHud.exe"
start "" "C:\Program Files\PokerStars\Pokerstars.exe"

batch files run line-by-line and will wait for each line to complete before proceeding to the next. if you use the 'start' command you'll spawn a separate process for each thing you're trying to launch, and the start process itself will resolve nearly instantly before proceeding along to the next one.

IHateKeithSmart
11-14-2005, 02:39 AM
Hey lari:

Use the 'start' command:

start "PokerTracker" /B "C:\Program Files\Poker Tracker V2\ptrack2.exe"
start "PAHud" /B "C:\Program Files\PokerAce Hud\PAHud.exe"
start "Stars" /B "C:\Program Files\PokerStars\Pokerstars.exe"

Larimani
11-14-2005, 03:11 AM
start "" "C:\Program Files\thanksastroglide.exe"
start "" "C:\Program Files\thanksIHateKeithSmart.exe"