Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3500515B75D9D311948800508BA37955950898@EX-LONDON> From: Vince Hoffman To: "'Lane, Frank L'" , cygwin Subject: RE: Is it possible to copy a file from anywhere to My Documents w ith bash cp? Date: Wed, 23 Oct 2002 18:04:40 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" depending on where your My Documents is (for this example I'll use C:\Documents and Settings\Frank Lane\My Documents\) cp /cygdrive/c/Documents\ and\ Settings/Frank\ Lane/My\ Documents/ or cp "/cygdrive/c/Documents and Settings/Frank Lane/My Documents/"] you can use the util cygpath to find out the cygwin syntax of a windows path althopugh spaces still need to be escaped (put a \ before them) or else enclose the whole path in inverted commas. Bash's tab autocomplete will escape spaces for you which is nice. > -----Original Message----- > From: Lane, Frank L [mailto:frank DOT l DOT lane AT boeing DOT com] > Sent: 23 October 2002 17:51 > To: cygwin > Subject: Is it possible to copy a file from anywhere to My Documents > with bash cp? > > > How can I copy a file from a directory to My Documents on a > bash command > line? I played with it and can't hack the syntax. > > Thanks, > Frank > > -- > 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/