If a file of the same name exists in the destination, you’ll be asked if you want to overwrite or skip the file. To move the files, replace copy with move This recursively copies all files in the d:\vacation snaps\2016\ folder to the d:\all snaps\ folder. Run the following commands, one by one and press ENTER after each line: md "d:\all snaps"įor /r %d in (*) do copy "%d" "d:\all snaps\".Scenario: Let’s copy all files from the d:\vacation snaps\2016 folder and sub-folders to the d:\all snaps folder recursively. Follow one of the three methods, whichever one you find easy. This procedure is also known as flattening a directory structure. You can copy or move files from sub-folders to a single folder using at least three different built-in ways in Windows. RELATED: How to Copy Folder Structure without Copying the Files Move or Copy Files in Subfolders to a Single Folder