Mail Archives: cygwin/2002/10/24/10:33:05
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 -