Open Powershell in a specific directory from shortcut

后端 未结 9 1317
再見小時候
再見小時候 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 12:59

    I just wanted to add my Developer Powershell link ... for the records.

    C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -noe -c "&{Import-Module """C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"""; Enter-VsDevShell d998f19b; cd c:\dev\}"
    

    This will start the Developer Powershell (VS 2019) in c:\dev\.

提交回复
热议问题