Retrieve AppData folder



  • On 01/03/2018 at 02:24, xxxxxxxx wrote:

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

    ---------
    Hello.

    How can I retrieve the common AppData folder using C4D calls ?
    I am referring to C:/ProgramData folder.
    Is it safe to do it using OS specific calls ?
    I have tried C4D_PATH_APPLICATION, but it returns the user AppData.

    Thank you.



  • On 02/03/2018 at 03:31, xxxxxxxx wrote:

    Hi Peterakos, thanks for writing us.

    With regard to your question, I confirm that none of the methods to access folders in our API, or any define to be used in conjunction with GeGetC4DPath can provide you with the result desired. 
    As side note consider that on Windows you can use %ProgramData% env variable to access that folder.

    Best, Riccardo


Log in to reply