Thursday, April 9, 2015

Copy files from multiple sub-folders to 1 folder

Create the new destination folder (this example = k:\1folder).

This command copies all files found in c:\test to k:\1folder.

Bring up elevated cmd/DOS prompt - START | type cmd.exe | RIGHT-click on cmd.exe above under "Programs" | select "Run as Administrator | Paste this command -


for /f "tokens=*" %a in ('dir /b /s /a-d "c:\test"') do @copy "%a" "k:\1folder"


Fonte: TechSupport

No comments:

Post a Comment