Open Powershell in a specific directory from shortcut

后端 未结 9 1316
再見小時候
再見小時候 2021-01-30 12:22

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

9条回答
  •  长情又很酷
    2021-01-30 13:13

    try:

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

提交回复
热议问题