[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.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/pla
tform/shell/reference/functions/shgetfolderpath.asp
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.
jay
> -----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
- $HOME default on w32, Stefan, 2004/10/25
- Re: $HOME default on w32, Lennart Borgman, 2004/10/25
- Re: $HOME default on w32, CHENG Gao, 2004/10/25
- Re: $HOME default on w32, Stefan Monnier, 2004/10/25
- Re: $HOME default on w32, Stefan Daschek, 2004/10/25
- Re: $HOME default on w32, Kai Grossjohann, 2004/10/26
- Re: $HOME default on w32, Stefan Monnier, 2004/10/26
- RE: $HOME default on w32,
Jay Finger <=
- Re: $HOME default on w32, Stefan Monnier, 2004/10/26
- Re: $HOME default on w32, Stephan Stahl, 2004/10/27
- Re: $HOME default on w32, Cheng Gao, 2004/10/27
- Re: $HOME default on w32, Lennart Borgman, 2004/10/27
- Re: $HOME default on w32, Stefan Monnier, 2004/10/27
- RE: $HOME default on w32, Jay Finger, 2004/10/27
- Re: $HOME default on w32, Lennart Borgman, 2004/10/27
- RE: $HOME default on w32, Jay Finger, 2004/10/28
- Re: $HOME default on w32, Stefan Monnier, 2004/10/27
- Re: $HOME default on w32, Peter Whaite, 2004/10/27