This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Two short scripts for Cygwin-Windows interoperation

On Thu, 4 Jan 2007, Christian Franke wrote:

> Igor Peshansky wrote:
> > ...
> > The Desktop path can be obtained in a general way by "`cygpath -uD`".
> > Unfortunately, there is no such ready shortcut for "My Documents",
> > though "`cygpath -uH`/$USER/My Documents" should work for most
> > installations of the English versions of Windows.
> The function SHGetSpecialFolderLocation() used by cygpath obtains (most
> of?) these pathnames from the registry.
> To retrieve the cygwin path of "My Documents" folder, use:
> $ cygpath -u "$(cat /proc/registry/HKEY_CURRENT_USER/Software/\
> Microsoft/Windows/CurrentVersion/Explorer/Shell\ Folders/Personal)"
> This works also on non-English XP.
> It should also work on Vista (where ugly "\Documents and
> Settings\USER\My Documents" is finally replaced by
> "\Users\USER\Documents" ;-)

The point I was making was that maybe we could add another option to
cygpath to retrieve the "My Documents" path...  Opinions?
      |\      _,,,---,,_ |
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]