Batch file 在批处理中,如何将%解析为纯文本?

Batch file 在批处理中,如何将%解析为纯文本?,batch-file,Batch File,我需要将%解析为文本,而不是变量。我该怎么做 我正试图分析这一行,特别是。。。(敏感信息已被编辑) %m和%s需要作为%m和%s解析到srcds.exe。还有什么我可以做的吗?您应该将百分号加倍:%%m start /wait srcds.exe -console -game garrysmod +maxplayers 32 +map %map% +exec server.cfg +gamemode %app% -insecure -tickrate 33 +rcon_password "[RE

我需要将%解析为文本,而不是变量。我该怎么做

我正试图分析这一行,特别是。。。(敏感信息已被编辑)


%m和%s需要作为%m和%s解析到srcds.exe。还有什么我可以做的吗?

您应该将百分号加倍:
%%m

start /wait srcds.exe -console -game garrysmod +maxplayers 32 +map %map% +exec server.cfg +gamemode %app% -insecure -tickrate 33 +rcon_password "[REDACTED]" +sv_loadingurl "www.friendshipisgaming.net/fig/index.php?mapname=%m&steamid=%s&servername=%servername%" +host_workshop_collection [REDACTED] -authkey [REDACTED]