在Powershell中用$ PATH执行EXE,它以数值开头?

Jim*_*meh 4 powershell exe constants numeric

所以7z.exe在我的$ PATH环境变量中.

PS C:\Users\jimmeh> 7z.exe
Bad numeric constant: 7.
At line:1 char:2
+ 7 <<<< z.exe
    + CategoryInfo          : ParserError: (7:String) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : BadNumericConstant
Run Code Online (Sandbox Code Playgroud)

除了重命名EXE,有没有办法做到这一点,还是Powershell中的一个错误?

ber*_*d_k 6

它的工作方式

& '.\7z.exe'
Run Code Online (Sandbox Code Playgroud)

如果要指定要提取的存档

&'.\ 7z.exe'e your.zip