Closed RobertKalnins closed 1 year ago
I don't have this fiend. But I'll try to check. Thanks for report!
Try .\rcon -c .\rcon.yaml "servermsg \"Test test test\""
Powershell: Didn't work with "servermsg \"Test test Test""
Worked with 'servermsg \"Test test Test"'
Command prompt: Didn't work C:\rcon-0.10.2-win64>rcon.exe -c .\rcon.yaml 'servermsg \"Test2 test2 Test2"' Unknown command 'servermsgEscape character did it for powershell
Cheers for the suggestion - the powershell one should be good enough for our use case
Tested on a Zomboid server on Win10 - 22H2, but had same issue on a previous version.
Issue: Command with double quotes treated as multiple commands on windows systems
Expected behaviour: 'command "string-for-command"' passes the command with "string-for-command" to rcon server
Experienced behaviour: command is treated by rcon client as multiple separate commands
Not working in Powershell - PSVersion - 5.1.19041.2364 Haven't tested on other versions of powershell.
Not working in cmd:
Working in WSL - Ubuntu:
Also works in my Linux server with no problems