Page 1 of 1

copy mulitiple files an once

Posted: 22 Dec 2011 12:39
by DELTA_12
how to copy multiple files at once? (i dont want to write 463 commands)

Re: copy mulitiple files an once

Posted: 22 Dec 2011 23:41
by orange_batch
Copy the directory, not the individual files.

Re: copy mulitiple files an once

Posted: 23 Dec 2011 03:02
by DELTA_12
and is i need to copy files so they are at root directory?

Re: copy mulitiple files an once

Posted: 23 Dec 2011 06:05
by aGerman
That's too less information.
You could use wildcards like asterisks. You could use different commands with different options, such like COPY, XCOPY and ROBOCOPY. You could process the DIR command in a FOR /F loop. You could apply FIND or FINDSTR to the files or to the output of DIR. It depends on whether you want to copy all files in a directory, whether you need to search in sub folders recursively, whether you need to search for files with particular names, extensions, contents, date, etc. ...

Regards
aGerman

Re: copy mulitiple files an once

Posted: 29 Dec 2011 19:43
by phillid
I hate reading small and simply worded replies. Love it when aGerman comes along and blows the newbie's head off with details ;) it gets the question answered more quickly