Open Powershell in a specific directory from shortcut
Use this command.
powershell.exe -noexit -command "cd c:\temp"
-NoExit
: Do not exit after running startup commands.
You can also set the "Start in" shortcut field to your desired location.
Ok - you need to use the &
parameter to specify it's a powershell comand & the syntax is slightly different:
%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "& {cd c:\path\to\open}"