Reputation: 11399
I went through all related answers, but I still could not solve my problem.
I would like to shell the following:
C:\Program Files (x86)\my application\application\bin\app.exe background
As one can see, there are spaces in the path, and there is an argument.
I tried just anything I could image regarding quotes, but I just don't find the right escaping.
Could anybody help?
Thank you very much!
Upvotes: 0
Views: 171
Reputation: 175866
Quote the path and stick the argument on the end:
ret = shell("""C:\Program Files (x86)\my application\application\bin\app.exe"" background", vbNormalFocus)
Upvotes: 2