Hello, hello!
I wrote a batch script to automatize EVERYTHING! (except for playing, you will have to do that yourselves.)
It begins with a kill command, targeting RustDedicated.exe.
BUT! before it does that, I want it to echo "server.save" to the console, so the server gets a chance to save itself, before being murdered.
what I tried uptil now:Sadly, it does not even recognize the "pause", so sadly, this one goes to my wall of fails.Code:echo server.save | RustDedicated.exe pause
I also tried(save.txt has "server.save" as content), it paused, but still did not save. :/Code:type save.txt | RustDedicated.exe pause
Now I have the feeling this script does not send anything to a running console, but tries to open a new process.
Does any of you recommend/suggest/advise anything else?
Yes, it has to be a .bat solution for now.
I already publicized two versions of this script before, I will release this, too, when I am completely done with it. I aim it to be userfriendly as much as possibru. If anyone of you studied Development and has a strong opinion on variable-names and how they should look, please send me a PM!
Solved Sending command to console via .bat? [impossible but workaround!]
Discussion in 'Rust Development' started by Niemand <3, Nov 6, 2017.