Hi Christian,
Hello,
I'm a bit confused by the various win systems when I want to create
a folder in the "Program Files"- Folder of Windows...
What do I have to respect when I want to create my folder in that
path independently of the win version ?
This is what i use to get the appropriate folder to store my prefs in
on every platform:
function the_prefs_folder
switch the platform
case "MacOS"
put specialfolderpath("preferences") into p_folder
## The prefs folder of the current user
break
case "Win32"
if the systemversion contains "NT" then
## Win NT, 2000 and XP
## something like "Common Application Data" i am not sure,
but it works :-)
put specialfolderpath(35) into p_folder
else
## Windows 95, 96, 97, 98, 99, ME
put specialfolderpath("system") into p_folder
## = C:\Windows
## a.k.a "The black hole"
end if
break
default
## Linux/Unix
put $HOME into p_folder
## The HOME folder of the curretn user
break
end switch
return p_folder
end the_prefs_folder
Hope that helps.
Thanks for any help,
Christian
Regards
Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de
_______________________________________________
use-revolution mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution