Skip to content

Commit 1089756

Browse files
LanYun2022Copilot
andauthored
Update ContextMenuManager/Controls/ShellExecuteDialog.cs
Co-authored-by: Copilot <[email protected]>
1 parent 27e4b54 commit 1089756

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ContextMenuManager/Controls/ShellExecuteDialog.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static string GetCommand(string fileName, string arguments, string verb,
5050
string psFileName = "'" + fileName.Replace("'", "''") + "'";
5151
string psDir = string.IsNullOrEmpty(directory) ? "$null" : "'" + directory.Replace("'", "''") + "'";
5252
string psVerb = "'" + verb.Replace("'", "''") + "'";
53-
string psArgs = "\\\"" + arguments.Replace("\"", "`\\\"") + "\\\"";
53+
string psArgs = "'" + arguments.Replace("'", "''") + "'";
5454

5555
return $"powershell -WindowStyle Hidden -Command \"Start-Process -FilePath {psFileName} -ArgumentList {psArgs} -WorkingDirectory {psDir} -Verb {psVerb} -WindowStyle {winStyleStr}\"";
5656
}

0 commit comments

Comments
 (0)