这基本上是一个问题。 我已经尝试了几个选项:
iisexpress /path:"C:\ProgramFiles (x86)\PathToMyApp" /port:9000 iisexpress "/path:C:\ProgramFiles (x86)\PathToMyApp" /port:9000 iisexpress /path:C:\ProgramFiles^ ^(x86^)\PathToMyApp /port:9000 iisexpress "/path:C:\ProgramFiles (x86)\PathToMyApp" /port:9000 iisexpress /path:C:\ProgramFiles%20(x86)\PathToMyApp /port:9000
也许还有一些我只是忘记了。 一般来说,这个命令只是在没有任何提示的情况下退出 有了一些选项,我得到:
The term 'x86' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:38 + .\iisexpress /path:%ProgramFiles (x86 <<<< )%\PathToMyApp /port:9000 + CategoryInfo : ObjectNotFound: (x86:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
什么是正确的方法来做到这一点?
我没有测试过这个,但是你是否尝试在Program和Files之间放置一个空格?
iisexpress /path:"C:\Program Files (x86)\PathToMyApp" /port:9000
Hysh_00最有可能在Program Files的空间中碰到头,但我认为有些语言删除了空间。
在PowerShell 3.0中,您可以使用停止解析符号来停止PowerShell来干扰您的命令行。
iisexpress --% /path:"C:\Program Files (x86)\PathToMyApp" /port:9000