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 X-BigFish: VPC Message-ID: <8625BCF5F531B64492482DCD29A89440AD3BC3@efsemaexm01.emea.pfizer.com> From: "Coetzee, Evert" 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 Content-Type: text/plain; charset="iso-8859-1" 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/