cmd 执行 cd F:\develope\Program Files (x86)不会出现异常错误信息,
在 Windows PowerShell 中出现错误:
x86 : 无法将“x86”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,
然后再试一次。
解决办法 cd "F:\develope\Program Files (x86)"
如果是系统盘C盘,解决办法有:
PS C:\> cd ${env:ProgramFiles(x86)}
PS C:\Program Files (x86)>
PS C:\> cd "Program Files (x86)"
PS C:\Program Files (x86)>
原因是在任何Windows PowerShell路径中,空字符或空格都需要用一组引号或括号括起来。