Is it possible to copy a file from anywhere to My Documents with bash cp?
Stephan Mueller
smueller@Exchange.Microsoft.com
Wed Oct 23 13:32:00 GMT 2002
To add new wrinkles after the final one, "$USERPROFILE/My Documents" is
still somewhat presumptuous. That certainly looks like the default
location, but in Windows XP (what I just checked on) the user is allowed
to change the location of My Documents through the UI. On my machine,
it's (Windows syntax) D:\Doc, even though %USERPROFILE% still references
C:\Documents and Settings\smueller.
stephan();
-----Original Message-----
From: Don Dwiggins [mailto:dond@advancedmp.com]
Sent: Wednesday, October 23, 2002 12:14 PM
To: cygwin@cygwin.com
Subject: Re: Is it possible to copy a file from anywhere to My Documents
with bash cp?
Randall R Schulz writes:
> You should be able to see the contents of your "My Documents"
> directory with this command:
> % ls -l "$USERPROFILE/My Documents"
> Likewise, you can move or copy files to that directory like this:
> % cp SomeFile "$USERPROFILE/My Documents"
> % mv OtherFile "$USERPROFILE/My Documents"
As a final wrinkle, if you're going to do this a lot, you might want to
do something like "mount -u "$USERPROFILE/My Documents" /mydocs"; then
you can say things like "mv furniture /mydocs".
--
Don Dwiggins "Solvitur Ambulando"
d.l.dwiggins@computer.org
--
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/
--
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