1.

Solve : Batch File Help Please (resolved)?

Answer»

I'm trying to create a batch file to start Punkbuster(an anti cheating software) for a game and exit it when it finished but the game never starts so it just goes to the shutting down PB

This is what i have
http://pastebin.com/d188cb664

I use one i got of the internet for another game that USES punkbuster as WELL:
http://pastebin.com/m36c645ef

*Edit: Also i am useing Windows XP

*edit2: i found a work around. just create 2 different batch files. 1 to start and 1 to stopCode: [Select]@echo off
:: set punkbuster services to auto
sc config PnkBstrA binpath= "c:\windows\system32\PnkBstrA.exe" start= "auto"
sc config PnkBstrB binpath= "c:\windows\system32\PnkBstrB.exe" start= "auto"

:: start the punkbuster services
sc start PnkBstrA
sc start PnkBstrB

:: start BF1942
start /wait "C:\Program Files\EA GAMES\Battlefield 1942\BF1942.exe" /restart 1

:: after BF closes stop punkbuster services
sc stop PnkBstrA
sc stop PnkBstrB

:: RESET status of punkbuster services to disabled
sc config PnkBstrA binpath= "c:\windows\system32\PnkBstrA.exe" start= "disabled"
sc config PnkBstrB binpath= "c:\windows\system32\PnkBstrB.exe" start= "disabled"

Quote

I'm trying to create a batch file to start Punkbuster(an anti cheating software) for a game and exit it when it finished but the game never starts so it just goes to the shutting down PB

Logically, there doesn't seem to be a problem with your code. Why doesn't the game start? Any error messages? Are you sure /restart 1 is correct?

restart 1 is a command line so it DOESNT show the movies in the begining. It says its not RIGHT. should it be /+restart 1 since it was + for the command?
Also i says it couldnt start pb for some reasonQuote
but the game never starts so it just goes to the shutting down PB

Quote
Also i says it couldnt start pb for some reason

So the bottom line is nothing in the batch file works. Change the @echo off to @echo on in your batch file. That may give you some clues what's wrong or post the console list so we can see what's going on.

Did you need to modify your firewall to let Punkbuster through?





Discussion

No Comment Found