I'm trying to write a bat
to start the game.
Games installed via Steam cannot be launched directly by calling .exe
. Therefore, I am trying to run through Steam.
I tried to use a command like steam://run/12345
, but it does not work.
I'm trying to write a bat
to start the game.
Games installed via Steam cannot be launched directly by calling .exe
. Therefore, I am trying to run through Steam.
I tried to use a command like steam://run/12345
, but it does not work.
The team can be spied by creating a shortcut for the game on the desktop.
To start the url (not only steam://
, but with any protocol) from the command line, you can use start:
start steam://rungameid/246620
I was always surprised by the command line under Windows ... You can write such a bat-file to start the game
@ECHO OFF set cmd="C:\Program Files (x86)\Steam\Steam.exe <game>" for /f %%i in ('%cmd%')
Try this bat script:
start "path to steam.exe" "path to .exe game"
Example:
start "C: \ Program Files (x86) \ Steam \ Steam.exe" "C: \ Users \ MyName \ Desktop \ game.exe"
Source: https://ru.stackoverflow.com/questions/425730/
All Articles
start steam://rungameid/246620
. I will transfer to the answer, if the question is re-opened. - PashaPash ♦