| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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-BigFish: | VPC |
| Message-ID: | <8625BCF5F531B64492482DCD29A89440AD3BC3@efsemaexm01.emea.pfizer.com> |
| From: | "Coetzee, Evert" <Evert DOT Coetzee AT pfizer DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Wildcards in the path name parameter |
| Date: | Thu, 26 May 2005 06:28:11 -0400 |
| MIME-Version: | 1.0 |
| content-class: | urn:content-classes:message |
| X-IsSubscribed: | yes |
Hi I want to do a simple copy. I have W2K on my machine and the normal dos commany would have been: copy c:\sourcedir\*.txt c:\targetdir So I have an application that makes a call to the cp.exe cygwin file: cp c:\sourcedir\*.txt c:\targetdir I get the following error: cp: cannot stat `c:\sourcedir\*.txt': No such file or directory I changed direction of the \ to / and it doesn't help. I did notice that if I'm in the sourcedir when running the commmand the following command works: cp *.txt c:\targetdir So my conclusion is that the * is not interpreted as a wildcard when it is part fo a pathname. How can I change that so that it copies all txt files in a source dir? Regards -- 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |