[fpc-pascal] Use environment variables in configuration file?
Michael Van Canneyt
michael at freepascal.org
Wed Jan 29 15:52:13 CET 2014
On Wed, 29 Jan 2014, hinst wrote:
>>
>> See globals.pas
>>
>> ReplaceSpecialFolder('$LOCAL_APPDATA',CSIDL_LOCAL_APPDATA);
>> ReplaceSpecialFolder('$APPDATA',CSIDL_APPDATA);
>> ReplaceSpecialFolder('$COMMON_APPDATA',CSIDL_COMMON_APPDATA);
>> ReplaceSpecialFolder('$PERSONAL',CSIDL_PERSONAL);
>> ReplaceSpecialFolder('$PROGRAM_FILES',CSIDL_PROGRAM_FILES);
>> ReplaceSpecialFolder('$PROGRAM_FILES_COMMON',CSIDL_PROGRAM_FILES_COMMON);
>> ReplaceSpecialFolder('$PROFILE',CSIDL_PROFILE);
>>
>> Is the standard list on Windows.
>>
>> And looking a bit further, I just see that you CAN do environment variables,
>> if you enclose them in $$, so $mvar$ would do the trick.
>>
>> Michael.
>
> Thanks! it worked
And I have updated the documentation :)
Michael.
More information about the fpc-pascal
mailing list