We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08abb2d commit 7ca40ccCopy full SHA for 7ca40cc
src/features/OpenInISE.ts
@@ -23,7 +23,9 @@ export function registerOpenInISECommand(): void {
23
//process = require('child_process');
24
//var filePath = convertUriToPath(editor.document.uri);
25
var filePath = 'C:\temp\Get-ProductKey.ps1'
26
- require("child_process").exec("powershell_ise.exe -NoProfile -File C:\temp\Get-ProductKey.ps1").unref();
+ //require("child_process").exec('powershell_ise.exe -NoProfile -File "C:\\temp\\Get-ProductKey.ps1"').unref();
27
+ require("child_process").exec(process.env.windir + '\\System32\\WindowsPowerShell\\v1.0\\powershell_ise.exe -NoProfile -File "C:\\temp\\Get-ProductKey.ps1"').unref();
28
+
29
30
});
31
}
0 commit comments