Powershell – Open Powershell in a specific directory from shortcut

powershellshortcutswindows 7

This sounds like it should be so simple… I must be dumb.

All I want is to make a windows short-cut that opens Powershell into a specific directory:

I'm using the target:

%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe 
    -noexit -command {cd c:/path/to/open}

Put it just spits out the command as text.

Best Answer

Use this command.

powershell.exe -noexit -command "cd c:\temp"

-NoExit: Do not exit after running startup commands.

Related Topic