5th Wolf Feb 3, 2020 @ 4:57am
SteamCMD update + run + exit
So I been trying to research how to use a bat file to run SteamCMD to update a server then run the server then close SteamCMD. I can make it do update and run the exe but can't get it to close SteamCMD. If I do just update with +quit it updates then closes but when I try to do update and exe SteamCMD won't close.
I tried +quit after the exe, i tried new line with exit. nothing.
Originally posted by wuddih:
that is not the steamcmd that is not closing that is just cmd/windows terminal because you are calling a process out of it, so it will stay open until it is "finished" and that is when the server.exe is terminated.

try instead:
start "" D:\Forest\steamapps\common\TheForestDedicatedServer\TheForestDedicatedServer.exe
< >
Showing 1-7 of 7 comments
MalikQayum Feb 3, 2020 @ 5:26am 
paste your current bat script here, and when i get to a pc since i am on the phone now, i will take a look at it.
5th Wolf Feb 3, 2020 @ 5:40am 
Awesome thank you!!! This is the bat lines I tried that worked fully. Does update, then does exe, but fails to close SteamCMD at the end:


"steamcmd +login anonymous +force_install_dir D:\Forest +app_update 556450 validate +quit

D:\Forest\steamapps\common\TheForestDedicatedServer\TheForestDedicatedServer.exe

exit"

(also tried "close" and "quit" at the end)
Last edited by 5th Wolf; Feb 3, 2020 @ 5:42am
The author of this thread has indicated that this post answers the original topic.
wuddih Feb 3, 2020 @ 6:43am 
that is not the steamcmd that is not closing that is just cmd/windows terminal because you are calling a process out of it, so it will stay open until it is "finished" and that is when the server.exe is terminated.

try instead:
start "" D:\Forest\steamapps\common\TheForestDedicatedServer\TheForestDedicatedServer.exe
5th Wolf Feb 3, 2020 @ 1:10pm 
Yes!!! Worked perfectly!!!!!
You by chance know how to make it run the exe minimized? :P

I tried /min before the exe string and -min after. no luck.
Last edited by 5th Wolf; Feb 3, 2020 @ 2:01pm
5th Wolf Feb 13, 2020 @ 11:27am 
Anyone know?
MalikQayum Feb 13, 2020 @ 12:56pm 
start /min "" "D:\Forest\steamapps\common\TheForestDedicatedServer\TheForestDedicatedServer.exe"
5th Wolf Feb 13, 2020 @ 2:13pm 
Thank you!!! It worked!
I had the /min after the two quotes. Putting it in front fixed it!
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Feb 3, 2020 @ 4:57am
Posts: 7