Run GeExecuteFile synchronously



  • On 21/02/2018 at 06:13, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   R18 
    Platform:   Windows  ;   
    Language(s) :     C++  ;

    ---------
    Hello.

    I need to use GeExecuteFile to run an exe and return to a callback once the exe is terminated.
    Can I do that somehow ? 
    I see that GeExecuteProgramEx receives a callback as parameter but it says it is private.

    Thank you.



  • On 26/02/2018 at 00:00, xxxxxxxx wrote:

    Hi,

    I'm sorry, I'm waiting for feedback from development. I need to ask for a bit more patience.



  • On 26/02/2018 at 02:17, xxxxxxxx wrote:

    Hi,

    unfortunately we have nothing to offer here.

    GeExecuteProgramEx() is a very special implementation for internal use cases. Most important it is completely synchronous, so C4D would be frozen, while the program is executed. Surely not what you are looking for.

    Obviously you could implement something yourself with platform/OS dependent code. Or a poor man's workaround, if you can combine the termination of the external program with the creation of a file. Then you could periodically test for this file, or make use of FileMonitor class (FileMonitor manual) for this.


Log in to reply