diff --git a/src/tools/1-add-open-wsl-terminal-here-menu.js b/src/tools/1-add-open-wsl-terminal-here-menu.js index f45fcf9..f24b96f 100755 --- a/src/tools/1-add-open-wsl-terminal-here-menu.js +++ b/src/tools/1-add-open-wsl-terminal-here-menu.js @@ -3,7 +3,7 @@ var WshShell = new ActiveXObject("WScript.Shell"); WshShell.CurrentDirectory = ".."; WshShell.RegWrite("HKCU\\Software\\Classes\\Directory\\shell\\open-wsl\\", "Open wsl-terminal Here", "REG_SZ"); WshShell.RegWrite("HKCU\\Software\\Classes\\Directory\\shell\\open-wsl\\command\\" - , WshShell.CurrentDirectory + "\\open-wsl.exe", "REG_SZ"); + , WshShell.CurrentDirectory + "\\open-wsl.exe -W \"%V\"", "REG_SZ"); WshShell.RegWrite("HKCU\\Software\\Classes\\Directory\\Background\\shell\\open-wsl\\", "Open wsl-terminal Here", "REG_SZ"); WshShell.RegWrite("HKCU\\Software\\Classes\\Directory\\Background\\shell\\open-wsl\\command\\" , WshShell.CurrentDirectory + "\\open-wsl.exe", "REG_SZ");