It's better to store preferences file in C:\Documents and Settings\All Users\Application Data
= specialFolderPath(35)
From MS documentation
CSIDL_COMMON_APPDATA �(0x0023)
Version 5.0 . The file system directory containing application data for all users. A typical path is C:\Documents and Settings\All Users\Application Data.
Regards. Thierry.
On Thursday, Jan 22, 2004, at 22:42 Europe/Paris, Mark Brownell wrote:
On Thursday, January 22, 2004, at 12:56 PM, Thomas J McGrath III wrote:
If I ask the user to save a Pref file somewhere on their machine then what is the best way to get that file loaded next time they run the > CD?
The CD is meant for cross-platform distribution.
Thomas,
I do this:
if the platform is "MacOS" then put specialFolderPath("preferences") into regStatGoPath put regStatGoPath & "/yourpref.txt" into itX if there is a file itX then put URL ("file:" & itX )) into temp -- put decompress(URL ("binfile:" & itX )) into temp else -- do something here to create one end if end if if the platform is "Win32" then put specialFolderPath("system") into regStatGoPath put regStatGoPath & "/yourpref.txt" into itX if there is a file itX then put URL ("file:" & itX )) into temp -- put decompress(URL ("binfile:" & itX )) into temp else -- do something here to create one end if end if
I would also add base64 for your cross-platform distribution.
Mark
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
