That's basically the question. I've tried a couple options:
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
and probably some others that I'm just forgetting. Generally, the command just exits without saying anything. With some of the options, I get:
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
What's the correct way to do this?
I have not tested this but did you try putting a space between Program and Files?
iisexpress /path:"C:\Program Files (x86)\PathToMyApp" /port:9000