Pocahawtness Dec 20, 2022 @ 1:49pm
What's the best way to run an exe before a particular game is executed?
I have a .exe that needs to run every time a game is run from steam. It fixes a display issue. Is there an easy way to get steam to run it when I click to play the game?
< >
Showing 1-2 of 2 comments
MoonC A T Dec 20, 2022 @ 2:21pm 
I think a simple batch file would accomplish what you want, though you obviously wouldn't be able to run the batch file natively through Steam.

Just be sure to list the commands in the order you want them to execute, I'm assuming you would want the command that fixes the display first.
RiO Dec 20, 2022 @ 2:29pm 
Originally posted by MoonC A T:
I think a simple batch file would accomplish what you want, though you obviously wouldn't be able to run the batch file natively through Steam.

You can modify the command-line parameters for starting a game through Steam.

Afaik if your parameters have a %command token in there, then Steam will instead treat the parameters as a full alternate launch command and will insert the original launch command in place of the %command token.

I.e. you can use
C:\whatever\path\to\your\batch.bat %command
and the original launch command should be handed to the batch file as its first argument, so your batch file can do what it needs to do, and then launch the original command.
Last edited by RiO; Dec 20, 2022 @ 2:30pm
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Dec 20, 2022 @ 1:49pm
Posts: 2