How do you set PowerShell's default directory?

前端 未结 13 1745
生来不讨喜
生来不讨喜 2021-01-30 01:37

Is there a way to change PowerShell\'s default location?

How do you set PowerShell\'s default working directory?

13条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-30 01:56

    An easier way to set the default directory is the following:

    1. Right click the Windows PowerShell icon and pin to Start
    2. Right click the Windows PowerShell icon in Start, and again right click Windows PowerShell and select Properties (not Run as Administrator and not Windows PowerShell ISE)

      1. In the Shortcut tab -> 'Start in' field, change to the location you want PowerShell to start in.

提交回复
热议问题