Meaningful Windows locations and cygpath (Was Re: Is it possible to copy a file from anywhere to My Documents with bash cp?)

Joshua Daniel Franklin joshuadfranklin@yahoo.com
Thu Oct 24 09:41:00 GMT 2002


--- Igor Pechtchanski <pechtcha@cs.nyu.edu> wrote:
> On Thu, 24 Oct 2002, Joshua Daniel Franklin wrote:
> > http://cygwin.com/cygwin-ug-net/using-utils.html#CYGPATH
> >
> > "On Win9x systems with only a single user, -A has no effect; -D and -AD
> > would have the same output. "
> 
> What I meant, however, was that I'll look into the fix (this really isn't
> correct behavior, as even with a single user there are the All Users
> directories on Win98).  If the API calls don't return the right values, we
> should guess, or something...

Well, I may be wrong, but I believe that the "All Users" directory is
only used if you set up "User Profiles". It exists if you don't, but isn't
used. Unfortunately I no longer have Win98 installed (did I say
*un*fortunately?!) so I'm not going to be able to verify this.

If we guessed at it, using for example 

cp myfile "$(cygpath -AD)"

would not really copy a file to the Desktop on Win98, though it would on
WinNT/2000/XP. That's kinda the point of the -A switch.

__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

--
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/



More information about the Cygwin mailing list