[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: $HOME default on w32

From: Jay Finger
Subject: RE: $HOME default on w32
Date: Tue, 26 Oct 2004 19:40:49 -0700

I think that what you really want is to use SHGetFolderPath() to get the
path to the directory you want.


Probably the correct constant to use is CSIDL_PERSONAL, which is the user's
"My Documents" folder.

It is not safe to assume that these well-known folders are somewhere under
c:\documents and settings, or even under $USERPROFILE, as in a networked
environment they may get redirected to someplace so that users can have a
common store.

> -----Original Message-----
> From: address@hidden [mailto:emacs-
> address@hidden On Behalf Of Stefan Monnier
> Sent: Tuesday, October 26, 2004 9:33 AM
> To: Kai Grossjohann
> Cc: address@hidden
> Subject: Re: $HOME default on w32
> >> And I dont think the dir is simply C:/Documents and Settings/<user>, it
> >> may be C:/Documents and Settings/Application Data/ or C:/Documents and
> >> Settings/Local Settings/Application Data/. I am not sure.
> > I think there is an environment variable that always points to the
> > right directory.
> It's USERPROFILE.  Read my original message.
>         Stefan
> _______________________________________________
> Emacs-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-devel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]