2

I was handed a bat file with something like the below:

app -r "a://b.c" -f "WIN 11,265" -pp "/%nick%/" -C S:diboze -C S:%nick%^
 -C S:2.625 -C S:pbkdf2_sha256^$10000^$RGarixCRleJl^$4s8d4fsd4^
 /4Df4d/bEW9k= -T "m9z#$dO0qe@sMYxx34Rxe%"

I translated it into C# by replacing " with "" (using a @" string) then replacing %nick% with {0} in a String.Format. However the script does not work. What else do I need to escape? Is pbkdf2_sha256^$10000 actual code? I thought everything here should be raw text except for %nick% but it appears that I'm wrong.

4

1 回答 1

0

如果您的 originak 命令是从批处理文件或从 cmd 提示符调用的,这一点很重要。

app -r "a://b.c" -f "WIN 11,265" -pp "/%nick%/" -C S:diboze -C S:%nick%^
 -C S:2.625 -C S:pbkdf2_sha256^$10000^$RGarixCRleJl^$4s8d4fsd4^
 /4Df4d/bEW9k= -T "m9z#$dO0qe@sMYxx34Rxe%"

从一个批次它是有效的

app -r "a://b.c" -f "WIN 11,265" -pp "/%nick%/" -C S:diboze -C S:%nick% -C S:2.625 -C S:pbkdf2_sha256$10000$RGarixCRleJl$4s8d4fsd4 /4Df4d/bEW9k= -T "m9z#$dO0qe@sMYxx34Rxe"

如您所见,我删除了插入符号和最后一个百分号。

在命令提示符下它是相同的,但应该保留最后一个百分号。

于 2013-06-20T21:12:14.510 回答