copy mulitiple files an once

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
DELTA_12
Posts: 2
Joined: 22 Dec 2011 12:36

copy mulitiple files an once

#1 Post by DELTA_12 » 22 Dec 2011 12:39

how to copy multiple files at once? (i dont want to write 463 commands)

orange_batch
Expert
Posts: 442
Joined: 01 Aug 2010 17:13
Location: Canadian Pacific
Contact:

Re: copy mulitiple files an once

#2 Post by orange_batch » 22 Dec 2011 23:41

Copy the directory, not the individual files.

DELTA_12
Posts: 2
Joined: 22 Dec 2011 12:36

Re: copy mulitiple files an once

#3 Post by DELTA_12 » 23 Dec 2011 03:02

and is i need to copy files so they are at root directory?

aGerman
Expert
Posts: 4722
Joined: 22 Jan 2010 18:01
Location: Germany

Re: copy mulitiple files an once

#4 Post by aGerman » 23 Dec 2011 06:05

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

phillid
Posts: 109
Joined: 03 Apr 2010 20:27
Location: Wellington, New Zealand
Contact:

Re: copy mulitiple files an once

#5 Post by phillid » 29 Dec 2011 19:43

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

Post Reply