Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hardcode the paths to Windows PowerShell and CMD
Occasionally, we get users with corrupt PATH environment variables: they can't lauch PowerShell, because for some reason it's dropped off their PATH. We also get users who have stray applications named `powershell.exe` just lying around in random system directories. We can combat both of these issues by simply hardcoding where we expect PowerShell and CMD to live. %SystemRoot% was chosen over %WINDIR% because apparently (according to Stack Overflow), SystemPath is read-only and WINDIR isn't. Refs #6039, #4390, #4228, #4682 (stray powershell.exe). This may impact #6082 (as it might be another "stray file" incident).
- Loading branch information