13
3
I want to start PowerShell (C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe) from windows 7 default command line (cmd) and go to the specific path.
I used the command:
start C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe
It'll work, and show the powershell window.
But, if I use:
start C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe Set-Location c:\
The black window will flash quickly.
How can I open powershell from cmd by the specific path? Thanks in advance.
Or
%SystemRoot%
– Amit Naidu – 2018-03-08T02:52:09.960If you must use the full path to
powershell.exe
, better to use%windir%
. – Jay Bazuzi – 2013-04-28T05:52:48.447