Afficher un message
Vieux 15/09/2007, 06h53   #11
Phil
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Cross-platform Home Directory?



> -----Original Message-----
> From: Clifford Heath [mailto:no@spam.please.net]
> Sent: Saturday, September 15, 2007 6:25 AM
> To: ruby-talk ML
> Subject: Re: Cross-platform Home Directory?



> Everyone's ed you with ways to find the home directory, but on
> Windows this is not normally the right place to store session data.
> That's what Application Data is for. Make a directory under there for your
> application. Configuration data (user-modifiable but less

frequently-changing)
> may be stored in the registry.


ENV["APPDATA"] produces the Application Data directory. Best to use that:
>> ENV["APPDATA"]

=> "C:\\Users\\CynicalRyan\\AppData\\Roaming"
>> exit


Since it is in a different location from Windows XP in Vista (the above path
is a Vista path).

> The Windows certification documents describe where you should put
> stuff.


Are these available on MSDN?

--
Phillip Gawlowski


  Réponse avec citation
 
Page generated in 0,24676 seconds with 9 queries