LC application running on lab computers

Klaus major-k klaus at
Wed Mar 27 17:04:26 EDT 2019

Hi Peter,

> Am 27.03.2019 um 21:59 schrieb Peter Bogdanoff via use-livecode <use-livecode at>:
> Hi,
> My application is being installed on Windows machines in a school lab. The admin is having trouble because I’m writing preference files to the Users\<user>\ folder and when another user logs in, the file is not available. This may be a problem in the future for Macs as well. These same preference files should be accessed by all users.
> The specialFolderPath functions don’t seem to have one for a root level Library/Preferences folder. Is there otherwise a best, or even workable practice for this scenario?

you could use these 2 undocumented specialfolderpath() codes for Windows:
-> specialFolderPath(35) -> prefs folder for ALL users
-> specialfolderpath(26) -> dito for the current user only!

Not sure this is still working on Win 10, but worth a try. :-)
Check this in the IDE with the messagebox:
put specialFolderPath(35)

> Peter Bogdanoff
> ArtsInteractive



Klaus Major
klaus at

More information about the use-livecode mailing list