You are not passing enough arguments to cp. It requires both source and destination. Also, if you're using linux then "c:\users\" will not work. See man mount to map this folder into a linux directory (maybe your distribution already did this for you, run mount without parameters to check).
Assuming your c: drive is mounted under /dos, the correct command would be:
find less/DH* more/DH* -type f -name "all*.dat" -exec cp "{}" /dos/users/ ";"
(I assumed c:\users is the destination folder, is that right?) Make sure not to omit any needed quotes, and that less/DH* and more/DH* are directories. If it still does not work it would be helpful to copy the error message in your post.
Hint: using -iname instead of -name will ignore case. You might need it.
Last edited by nacio; 03-21-2007 at 10:49 AM.
|