This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Wildcards in the path name parameter
- From: "Coetzee, Evert" <Evert dot Coetzee at pfizer dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 26 May 2005 06:28:11 -0400
- Subject: Wildcards in the path name parameter
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/