Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Thu, 24 Oct 2002 11:01:01 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: "Christopher A. Snyder" cc: cygwin AT cygwin DOT com Subject: RE: Meaningful Windows locations and cygpath In-Reply-To: Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII I think that was the original idea... Igor On Thu, 24 Oct 2002, Christopher A. Snyder wrote: > 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. -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51 -- 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/