GeExecuteFile error?

  • 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?


  • 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(..)

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

    Thanks. GeFExist(...) works!


Log in to reply