From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jay Finger" Newsgroups: gmane.emacs.devel Subject: RE: $HOME default on w32 Date: Tue, 26 Oct 2004 19:40:49 -0700 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <20041027024056.DUFJ25072.out010.verizon.net@muskrat> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1098844888 3524 80.91.229.6 (27 Oct 2004 02:41:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Oct 2004 02:41:28 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 27 04:41:14 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CMdkQ-00089u-00 for ; Wed, 27 Oct 2004 04:41:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMds9-0001ra-Ef for ged-emacs-devel@m.gmane.org; Tue, 26 Oct 2004 22:49:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CMds2-0001rH-AP for emacs-devel@gnu.org; Tue, 26 Oct 2004 22:49:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CMds1-0001qz-RN for emacs-devel@gnu.org; Tue, 26 Oct 2004 22:49:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMds1-0001qw-Ph for emacs-devel@gnu.org; Tue, 26 Oct 2004 22:49:05 -0400 Original-Received: from [206.46.170.133] (helo=out010.verizon.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CMdkB-0004Mx-4j for emacs-devel@gnu.org; Tue, 26 Oct 2004 22:40:59 -0400 Original-Received: from muskrat ([4.15.136.159]) by out010.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20041027024056.DUFJ25072.out010.verizon.net@muskrat>; Tue, 26 Oct 2004 21:40:56 -0500 Original-To: "'Stefan Monnier'" , "'Kai Grossjohann'" X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcS7eYDTnar7xhWyRcG/dub1x+X/FwAUUDdA In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Authentication-Info: Submitted using SMTP AUTH at out010.verizon.net from [4.15.136.159] at Tue, 26 Oct 2004 21:40:54 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:29009 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29009 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: emacs-devel-bounces+jay.finger=pobox.com@gnu.org [mailto:emacs- > devel-bounces+jay.finger=pobox.com@gnu.org] On Behalf Of Stefan Monnier > Sent: Tuesday, October 26, 2004 9:33 AM > To: Kai Grossjohann > Cc: emacs-devel@gnu.org > Subject: Re: $HOME default on w32 > > >> And I dont think the dir is simply C:/Documents and Settings/, 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 > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel