delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/23/15:46:55

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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-MimeOLE: Produced By Microsoft Exchange V6.0.6318.0
MIME-Version: 1.0
Subject: RE: Is it possible to copy a file from anywhere to My Documents with bash cp?
Date: Wed, 23 Oct 2002 12:46:38 -0700
Message-ID: <BF653A78FF4ED0468924C8721AC5EAE701457EE1@df-muttley.dogfood>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Stephan Mueller" <smueller AT Exchange DOT Microsoft DOT com>
To: "Don Dwiggins" <dond AT advancedmp DOT com>, <cygwin AT cygwin DOT com>
X-OriginalArrivalTime: 23 Oct 2002 19:46:38.0415 (UTC) FILETIME=[E6D0B5F0:01C27ACC]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g9NJks524633

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 AT advancedmp DOT com] 
Sent: Wednesday, October 23, 2002 12:14 PM
To: cygwin AT cygwin DOT 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 DOT l DOT dwiggins AT computer DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019