Winword.exe ignores parameters AFTER one parameter with quotes
My problem from Word command-line-arguments space issues seems to be a specific winword.exe problem.
http://msdn.microsoft.com/de-de/library/system.environment.getcommandlineargs%28v=VS.90%29.aspx says: MyApp.exe "alpha with spaces" "beta with spaces" ==> MyApp.exe, alpha with spaces, beta with spaces
This is not true for 开发者_Go百科winword.exe.
winword.exe /alpha:1 /beta:2 ==> OK
winword.exe "/alpha:1 space" "/beta:2" ==> beta is missing?!
winword.exe /alpha:"1 space" "/beta:2" ==> beta is missing?!
It's really odd ... I'm not able to pass more than one parameter that contains spaces.
any ideas?
精彩评论