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: Checking XCOPY Exit Value in Cygwin Bash


Christopher Faylor wrote:

Is there some reason why you are not using "cp" to accomplish your task? "cp --help" should provide you with all sorts of options for copying files. You should be able to press "cp" into service for this.

Using DOS utilities and DOS paths for this type of thing is putting you
on the fringes of support for Cygwin.  I really wouldn't recommend it.
Clearly this is not such a Windows-specific problem that it outside of
the capabilities of a UNIX solution.


My initial attempt was with cp. But I didn't see a way of preserving the original directory structure of the source dir,
inside the destination directory. XCOPY just seemed easier. Will have a go at 'cp' again.
Thanks and regards
Shane


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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