Copying many files from many subfolders to a single folder
Moderator: DosItHelp
Copying many files from many subfolders to a single folder
Hey guys, I'm brand new to batch, but there is a problem that I have. I need to get all the files with the same extension out of many folders and sub-folders that they are sitting in and put them all into a single folder of my choice. Could you please help me and show how the code should look like? Thanks a lot! (I tried searching forum for it, didn't find anything useful).
-
- Expert
- Posts: 442
- Joined: 01 Aug 2010 17:13
- Location: Canadian Pacific
- Contact:
Re: Copying many files from many subfolders to a single fold
Code: Select all
for /r "source path" %%x in ("*.ext") do move "%%x" "target path"
.ext = file type extension
use just * for all files
Re: Copying many files from many subfolders to a single fold
You said it all, It worked just fine! Thanks very much for your response.