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]

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/


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