Jump to content

Hey,

Since a short time i play PUBG and i found out that the game didn't like any overclocks on my gpu (even 1 MHz). If i played with an overclock it would crash halfway through the game. 

Now i have have made a little batch file that kills MSIAfterburner and than it starts the game. Now i want to start afterburner again after i closed the game. Is that poslible and how?

 

This is the code i already have.

@echo off

start E:\bureaublad\CMD /k "Taskkill /f /im MSIAFterburner.exe && start steam://rungameid/578080 && exit"

I use this part (E:\bureaublad\CMD) to start a administrator cmd becaus otherwise my taskkill dind't want to work.

 

 

 


 

Link to comment
https://linustechtips.com/topic/902115-need-help-by-a-batch-file/
Share on other sites

Link to post
Share on other sites

With your admin cmd it kinda makes it janky but theres a solution

 

Your main batch file:

@echo off
start E:\bureaublad\CMD /k "Taskkill /f /im MSIAFterburner.exe && start msi.bat && exit"

 

msi.bat

:STEAM
start /wait steam://rungameid/578080 || goto MSI

:MSI
start <path to MSIAFterburner.exe>
exit

There might be a better way but thats what I can think of atm :D 

Link to post
Share on other sites

1 hour ago, ModuleLFS said:

With your admin cmd it kinda makes it janky but theres a solution

 

Your main batch file:


@echo off
start E:\bureaublad\CMD /k "Taskkill /f /im MSIAFterburner.exe && start msi.bat && exit"

 

msi.bat


:STEAM
start /wait steam://rungameid/578080 || goto MSI

:MSI
start <path to MSIAFterburner.exe>
exit

There might be a better way but thats what I can think of atm :D 

Thanks Iam going to try it asap if i have any problems i let you know

Link to post
Share on other sites

On 3-3-2018 at 7:31 PM, ModuleLFS said:

With your admin cmd it kinda makes it janky but theres a solution

 

Your main batch file:


@echo off
start E:\bureaublad\CMD /k "Taskkill /f /im MSIAFterburner.exe && start msi.bat && exit"

 

msi.bat


:STEAM
start /wait steam://rungameid/578080 || goto MSI

:MSI
start <path to MSIAFterburner.exe>
exit

There might be a better way but thats what I can think of atm :D 

Hey, i tried the code but now afterburner starts directly after PUBG starts. Thats not completely what i expected. I hoped that afterburner would start when i close the game. Can you try to update the code so it starts afterburner after i close the game?

Link to post
Share on other sites

30 minutes ago, Ratboy2 said:

Hey, i tried the code but now afterburner starts directly after PUBG starts. Thats not completely what i expected. I hoped that afterburner would start when i close the game. Can you try to update the code so it starts afterburner after i close the game?

I suppose steam's run game ID protocol doesn't work like a process, replace it with the game's executable path. 

Link to post
Share on other sites

7 hours ago, ModuleLFS said:

I suppose steam's run game ID protocol doesn't work like a process, replace it with the game's executable path. 

I tried changing my run game ID to C:\program Files (x86)\Steam\steamapps\common\PUBG\TslGame\Binaries\Win64\TslGame.exe but than it says it can't find the file C:\program

Do you have a solution for that?

Link to post
Share on other sites

7 hours ago, ModuleLFS said:

I suppose steam's run game ID protocol doesn't work like a process, replace it with the game's executable path. 

You might be able to use task scheduler and won't have to make a batch file if you find the right process.

hi

Link to post
Share on other sites

32 minutes ago, Ratboy2 said:

I tried changing my run game ID to C:\program Files (x86)\Steam\steamapps\common\PUBG\TslGame\Binaries\Win64\TslGame.exe but than it says it can't find the file C:\program

Do you have a solution for that?

Use quotes in the path to avoid spaces causing a problem

"C:\program Files (x86)\Steam\steamapps\common\PUBG\TslGame\Binaries\Win64\TslGame.exe"

Link to post
Share on other sites

32 minutes ago, ModuleLFS said:

Use quotes in the path to avoid spaces causing a problem

"C:\program Files (x86)\Steam\steamapps\common\PUBG\TslGame\Binaries\Win64\TslGame.exe"

If i do that than it opens a empty cmd window with the code as "name" and further nothing happens. The game doesn't start up.

Link to post
Share on other sites

On 3/5/2018 at 6:32 PM, Ratboy2 said:

If i do that than it opens a empty cmd window with the code as "name" and further nothing happens. The game doesn't start up.

Okay remove the quotes from the path and replace it with

C:\PROGRA~2\Steam\steamapps\common\PUBG\TslGame\Binaries\Win64\TslGame.exe

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×