I am using system and I cannot use exec, as I wait on the result (may be fork). But, I have'nt tried anything besides system. And the problem of 'spaces in the path' is certainly a hindrance in the 'system' call, so I had use the getshortname call :(
Could you please send me the variant or the reference to the document for the call that handles the space problem in system call?