diff --git a/standalone/runtime-files/vscode/enhanced-terminal.js b/standalone/runtime-files/vscode/enhanced-terminal.js index 4efe6e38..33a5293b 100644 --- a/standalone/runtime-files/vscode/enhanced-terminal.js +++ b/standalone/runtime-files/vscode/enhanced-terminal.js @@ -200,7 +200,8 @@ class StandaloneTerminalProcess extends EventEmitter { if (shell.toLowerCase().includes("powershell") || shell.toLowerCase().includes("pwsh")) { return ["-Command", command] } else { - return ["/c", command] + // Use /s /c with quoted command for proper quote handling in cmd.exe + return ["/s", "/c", `"${command}"`] } } else { // Use -l for login shell, -c for command