diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 2480c42f20..8bdc954f97 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -2,7 +2,7 @@ "version": "2.0.0", "windows": { - "command": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe", + "command": "${env:windir}\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe", "args": [ "-NoProfile", "-ExecutionPolicy", "Bypass" ] }, "linux": { diff --git a/examples/.vscode/tasks.json b/examples/.vscode/tasks.json index c611488803..6452e9fd81 100644 --- a/examples/.vscode/tasks.json +++ b/examples/.vscode/tasks.json @@ -33,7 +33,7 @@ // Start PowerShell "windows": { - "command": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe", + "command": "${env:windir}\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe", "args": [ "-NoProfile", "-ExecutionPolicy", "Bypass" ] }, "linux": {