Skip to main content
June 29, 2011
Question

nativeProcess passing arguments with spaces

  • June 29, 2011
  • 1 reply
  • 654 views

Hil,

I try to pass a parameter like "-f 1" to an executable on windows. The application expects it just like that with the space between the "f" an the "1". Obviously the space is escaped (regarding to the adobe reference for 'arguements' parameter). Putting each part as one argument in the String-Vector doesn't help either. I now put all in a batch file but it would be great to have to option to pass just regular parameters to an executable. Just like regular Dos-Parameters often used.

Any ideas?

TIA

This topic has been closed for replies.

1 reply

December 17, 2012

Hi,

If your application path or parameter contains spaces, make sure to wrap it in quotes. For example path of the application has spaces C:\Program Files (x86)\Camera\Camera.exe use quotes like:

"C:\Program Files (x86)\Camera\Camera.exe"

Cheers

Pallav Samaddar