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

    GeExecuteFile error?

    SDK Help
    0
    3
    321
    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 25/11/2013 at 15:14, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R12 R15 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      I am successfully launching an html help file via GeExecuteFile in a tag plugin.
      However, when I make the target file unavailable GeExecuteFile still returns a positive result which makes it impossible for me to detect that the file wasn't found and an error message should appear.

      Am I missing something?

      Thanks

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

        On 25/11/2013 at 15:59, xxxxxxxx wrote:

        To check if the file exists, you can use GeFExist() 
        I am not sure to what extent GeExecuteFile is OS dependent, I have programmed many years for the Windows OS, and the Windows API has several ways of opening (executing) a file, and I do not know which of them C4D uses.
        So to be safe, just use GeFExist(..)

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

          On 27/11/2013 at 13:47, xxxxxxxx wrote:

          Thanks. GeFExist(...) works!

          Peter

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