ChildProcess arguments issues

Hi Jules,

I'm trying to run a child process, and it works fine as long as full path don't contains spaces. When there's space then it stop working. 

ChildProcess::ActiveProcess        jassert ( File::getCurrentWorkingDirectory().getChildFile (arguments[0]).existsAsFile());

Though after setting current working directory and just specifying the name of the executable as argument, there's no jassert anymore, but it don't launch the process either...

Adding backslash before space (or using quote) don't help because then the string array is not parsed properly and execvp () don't receive the full arguments etc... 

 

Any idea that might help me ?

Thanks,

Salvator

http://www.juce.com/forum/topic/childprocess-and-spaces-path

oh, sorry for the similar topic !

Thanks for the hint. Works fine.

Salvator