How do you remove the PowerShell requirement that scripts and executables be preceded by “.\”?

后端 未结 4 1491
余生分开走
余生分开走 2021-02-05 06:02

How do you remove the PowerShell requirement that scripts and executables be preceded by \".\\\"?

The PowerShell warning message that is shown when \"a.exe\" is entered

4条回答
  •  心在旅途
    2021-02-05 07:00

    Rename your script file so that it starts with a '.'.

    See https://github.com/PowerShell/PowerShell/issues/9468

提交回复
热议问题