delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/24/10:33:05

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Christopher A. Snyder" <csnyder AT wetstonetech DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Meaningful Windows locations and cygpath
Date: Thu, 24 Oct 2002 10:31:51 -0400
Message-ID: <MJEHKGPJJGHPBFKLLGIFKEGCCMAA.csnyder@wetstonetech.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Importance: Normal
In-Reply-To: <1035427689.10344.ezmlm@cygwin.com>

The problem with using the $USERPROFILE is all off these "Special Folders"
can be changed to just about anything. For example, I change my "My
Documents" folder to a network drive, but I leave most other items local. A
better way to resolve the location of these folders is to look in the
registry. Using the cygwin app, regtool.exe


regtool get "/HKCU/Software/Microsoft/Windows/CurrentVersion/Explorer/Shell
Folders/Personal"

will give you the location of the My Documents

Using this command you could create an alias, mounting, or env var to
shortcut getting to the folder.

This is true under Win2k. I assume XP and ME do the same thing as well.

A better solution, IMHO, would be to have cygpath figure out all these
special locations.

Chris




>In 2000 domain and probably .NET, active directory,
>group policy, user config
>there are 4 folders and 1 subfolder that receive special
>consideration from MS in domain administration
>
>"$USERPROFILE/Application Data"
>"$USERPROFILE/Desktop"
>"$USERPROFILE/My Documents"
>	"$USERPROFILE/My Documents/My Pictures"
>"$USERPROFILE/Start Menu"
>
>Each is individually redirectable to some other location
>but should still be accessable under "$USERPROFILE"
>
>I hope I'm not telling something already generally known.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019