• Dear Cerberus X User!

    As we prepare to transition the forum ownership from Mike to Phil (TripleHead GmbH), we need your explicit consent to transfer your user data in accordance with our amended Terms and Rules in order to be compliant with data protection laws.

    Important: If you accept the amended Terms and Rules, you agree to the transfer of your user data to the future forum owner!

    Please read the new Terms and Rules below, check the box to agree, and click "Accept" to continue enjoying your Cerberus X Forum experience. The deadline for consent is April 5, 2024.

    Do not accept the amended Terms and Rules if you do not wish your personal data to be transferred to the future forum owner!

    Accepting ensures:

    - Continued access to your account with a short break for the actual transfer.

    - Retention of your data under the same terms.

    Without consent:

    - You don't have further access to your forum user account.

    - Your account and personal data will be deleted after April 5, 2024.

    - Public posts remain, but usernames indicating real identity will be anonymized. If you disagree with a fictitious name you have the option to contact us so we can find a name that is acceptable to you.

    We hope to keep you in our community and see you on the forum soon!

    All the best

    Your Cerberus X Team

System folders

Pierrou

Well-known member
Joined
Jul 6, 2017
Messages
237
Hi,
I couldn't find any answer so here I am : is there a way to access system folders like "Documents" or "Program Files", on Windows at least?
Thanks!
 
When trying something like Local pathdocs:String = GetEnv("%HOMEPATH%") I get pathdocs="" what am I doing wrong?
Thanks!
 
OK I figured it out GetEnv("HOMEPATH") is the right syntax!
 
@dawlane Do you have similar tables for mac and linux?
 
Do you have similar tables for mac and linux?
Each Linux desktop environment has their own set, but you can find them with the Linux shell command printenv. The most common are found here.
Mas OS X also has this shell command, but the there are some Apple specific environment variables. For some reason Apple haven't published them, but a few are listed here.
 
Last edited:
Since someone lent me her Mac I'm trying to compile stuff on MacOS. Sometimes all it takes is to press a button, sometimes not.

For my current "big" project" I needed to store user data somewhere. On Windows one creates a directory inside the Documents folder using GetEnv("USERPROFILE") + "/Documents/" to get to the folder.

On MacOS one apparently can/must create the folder inside Users/username/Library/Application Support/"
It goes like this :
Cerberus:
Local path:String="/Users/"+GetEnv("USER")+"/Library/Application Support/"
and seems to be working but I had to spend some time on just that small line. Thanks again @dawlane for providing the environment variables above!
 
Last edited:
Back
Top Bottom