Commit 13e850ff authored by Benito van der Zander's avatar Benito van der Zander

escape = for windows cmd output

parent 2a9482d8
......@@ -2292,8 +2292,8 @@ end;
function windowsCmdEscape(s: string): string;
begin
result := StringsReplace(s, [#10, #13, '%', '^', '&', '<', '>', '|', '"', ',', ';', '(', ')', '"' ],
['', '', windowsCmdPercentageEscape + '%', '^^', '^&', '^<', '^>', '^|', '^"', '^,', '^;', '^(', '^)', '^"'],
result := StringsReplace(s, [#10, #13, '%', '^', '&', '<', '>', '|', '"', ',', ';', '(', ')', '"', '=' ],
['', '', windowsCmdPercentageEscape + '%', '^^', '^&', '^<', '^>', '^|', '^"', '^,', '^;', '^(', '^)', '^"', '^='],
[rfReplaceAll]);
end;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment