Open Powershell in a specific directory from shortcut

Dave Bish picture Dave Bish · Jan 9, 2013 · Viewed 54.9k times · Source

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.

Answer

Loïc MICHEL picture Loïc MICHEL · Jan 9, 2013

Use this command.

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

-NoExit: Do not exit after running startup commands.