Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Run GeExecuteFile synchronously

    SDK Help
    0
    3
    625
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post