Step 4. At what point of what we watch as the MCU movies the branching started? Abubakar is a freelance writer for How-to Geek. How can I change a sentence based upon input to a command? Copy File with Copy-Item cmdlet Copy-Item C:\Source\Test.txt C:\Destination This simple script will copy "Test.txt" file from the "Source" directory to "Destination" directory. Right Click on some empty space and choose paste. VBA macro to copy files from one folder (and all it's subfolders, and their subfolders, and their subfolders..) to another folder? My goal is to create an ADF pipeline that copies all of these files into one folder and appends the subfolder name and a timestamp to each file's name. Super User is a question and answer site for computer enthusiasts and power users. Super User is a question and answer site for computer enthusiasts and power users. You can get a listing of all the files you want and perform the copy that way. Just give it a shot! Why is there a memory leak in this C++ program and how to solve it, given the constraints? System.IO.File.Copy (sourceFile, destFile, true); // To copy all the files in one directory to another directory. This will copy the contents of the first tile and save it in the directory as the new filename. I have a folder with a lot of subfolders and files in them. RELATED: How to Use rsync to Backup Your Data on Linux. The destination folder should look like below, the below command works in command prompt, I have an error as below while executing in a batch script. Could very old employee stock options still be accessible and viable? Here are some examples. A real-life example of the same would look like this. X. . Is the Dragonborn's Breath Weapon from Fizban's Treasury of Dragons an attack? More info about Internet Explorer and Microsoft Edge. Provide billable centralized backup service for your clients. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. Can non-Muslims ride the Haramain high-speed train in Saudi Arabia? By the way, when you use it from a batch file, you need to add spare % in front of variable %f hence your command line should be; You don't need xcopy for that. Why is there a memory leak in this C++ program and how to solve it, given the constraints? You might also have to copy a folder's subfolders and contents when copying it. Select the destination path you want to copy files to. If you want to copy all files with a particular extension, type *., followed by that extension. You can go to a command prompt and type xcopy /? Asking for help, clarification, or responding to other answers. In advanced edition, you can enjoy 3 more practical sync modes: 9. February 27, 2023 . At it's most basic, the Copy-Item cmdlet copies a single file from point A to point B using the Path parameter as the source file path and the Destination parameter as the destination folder path. Why was the nose gear of Concorde located so far aft? For your particular question, the full command would be: Open File Explorer by pressing Windows+E and navigate to the file you want to copy. Connect and share knowledge within a single location that is structured and easy to search. Heres how you can do that using rsync: The above command will copy the files test1 , test2 , test3 , and test4 to the directory dir_2 . First, move the folder that you want to replicate the structure of, to a new folder that has nothing else in it. In the preceding example, this particular source parameter value .\toc*.yml copies the same 3 files even if its two path characters .\ were removed. All the files should be moved to one destination folder without the subfolders. If the subfolder in question has multiple subfolders and you want to move all the files without their subfolder structure in tact, do the following: Use the 'for' command: open a command window, then use something like the following, assuming you have files in c:\foo\bar\ and want to move them to c:\foo\ : The /Y switch turns off confirmation; remove it if you want to confirm each file move. Browse other questions tagged. To issue the previous command, ensure that xcopy creates the \Address directory if it does not exist, and suppress the message that appears when you create a new directory, add the /i command-line option as follows: 8. Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. 0. The xcopy command does not have this requirement. The xcopy command creates files with the archive attribute set, whether or not this attribute was set in the source file. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. Tick the apps and programs you want to move, preset the destination for them, and hit "Move". The following table lists each exit code and a description. /z also displays the percentage of the copy operation completed for each file. You can also copy a file to a directory but save it using a different name. Browse other questions tagged, Start here for a quick overview of the site, Detailed answers to any questions you might have, Discuss the workings and policies of this site. However, no files would be copied if the asterisk wildcard was removed from the source parameter, making it just .\toc.yml. Announcement: AI-generated content is now permanently banned on Ask Ubuntu, Recursively copy files from one directory to another, How to copy files from a folder using the find command with the -exec action, or with xargs, to another folder. How to copy all folders at a certain level, but no files or subfolder? I think the people who decided to close this are full of shit. Recommended for very large files. This parameter was added in Windows Server 2008 R2. The number of distinct words in a sentence. Xcopy essentially duplicates your folders to createan intact copy, and although it has some optional parameters, it is still difficult to do some advanced operations or requires carefully written syntax. It looks as though the the mp3 files in the sub folders are not copied, only the files in the root of the source folder get copied. One of the Frequently Asked Questions on the help facility on XXCOPY.COM is effectively "How do I gather all my files into one directory" and it tells you which switch to use. Specifies the destination of the files you want to copy. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. The subfolders are dynamically created with current date and time. For instance, if you just wanted to move .jpg files you could search for *.jpg). Confirm all your settings and clickStart Sync. Step 2. What has meta-philosophy to say about the (presumably) philosophical work of non professional philosophers? Sometimes, you may need to transfer the NTFS and Share permission together with your folders. By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. Ackermann Function without Recursion or Stack, Duress at instant speed in response to Counterspell. 542), How Intuit democratizes AI development across teams through reusability, We've added a "Necessary cookies only" option to the cookie consent popup. However, many users say that copying failed due to Xcopy not working sometimes, or Xcopy does not copy all files. Displays source and destination file names while copying. Let's say we need to copy a directory called C:\dir1\sourcedir to a location named D:\data\destination dir. Does Cosmic Background radiation transmit heat? Type *.pdf into the search field at the top right of an Explorer window. For example, the following batch program uses replaceable parameters for the xcopy source and destination parameters: To use the preceding batch program to copy all files in the C:\Prgmcode directory and its subdirectories to drive B, type: The command interpreter substitutes C:\Prgmcode for %1 and B: for %2, then uses xcopy with the /e and /s command-line options. Specifying whether destination is a file or directory. The Answer to this problem which I think is "How to gather all your files out of all the little subdirectories into one single directory" is to download a piece of software called XXCOPY. This parameter can include a drive letter and colon, a directory name, a file name, or a combination of these. You can also copy a file to a directory but save it using a different name. Book about a good dark lord, think "not Sauron". Don't include sub directories or the files stored in those. Making statements based on opinion; back them up with references or personal experience. Right click, choose cut Go to the parent folder Right Click on some empty space and choose paste. Since a nested foreach loop is not possible, and executing another pipeline with the first loop will prevent passing the output of the second getMetadata activity to the pipeline, I'm unsure how to proceed. For example, to copy a file named file.txt to a file named file_backup.txt in the current directory , you would run the following command: cp file.txt file_backup.txt. How can I do that? Anyone would be hard pressed to be unable to find even a single method to accomplish it. But if there is a slight error in the command, the copy operation may fail, and even lead to data loss. Note: After clicking Add Folder, you can open Filter Settings to set file inclusion/exclusion mask (available in Pro and above editions). Now you can run the below command to copy the complete sourcedir to D:\data\destination. Advanced Windows PC backup, sync and clone software for personal. That's different from the: cp @ (a|b)* /dest of ksh or bash -O extglob or zsh -o kshglob, or cp (a|b)* /dest of zsh. Could very old employee stock options still be accessible and viable? Like any other operating system, you can copy and paste files and directories (folders) in a Linux distribution using the desktop interface. i would simple create "finish" folder in "c:\" drive and execute the following command. Does With(NoLock) help with query performance? Now, when you re in the command prompt, you can type Xcopy command as below to copy folders and subfolders including contents. Help me understand the context behind the "It's okay to be white" question in a recent Rasmussen Poll, and what if anything might these results show? By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Launching the CI/CD and R Collectives and community editing features for batch file Copy files with certain extensions from multiple directories into one directory, Visual Studio - Before Build - TypeScript Compiling, Batch file to copy and rename files from multiple directories, Copy to Output Directory copies folder structure but only want to copy files, xcopy file, rename, suppress "Does xxx specify a file name" message, Using xcopy to copy multiple files/directories, some of which have spaces, Need Xcopy command to copy and rename all the files, Using Xcopy or other to copy similar folders within directory, robocopy or xcopy: copy directory and files. How can I recognize one? Copy a directory. If you dont know how to achieve it via Xcopy, keep reading to learn the detailed steps. Thanks for contributing an answer to Super User! Considercps syntax in its simplest form. #2 Copy all content including empty directory. Windows batch copy files from subfolders to one folder Ask Question Asked 10 years, 7 months ago Modified 7 years, 5 months ago Viewed 74k times 16 I had tried to make batch script that copies all *.tif files located in D:\images (random named subfolders here) to d:\all. Step 2: Find the folder and open it. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. Itis especiallyuseful when copying files from CDROM to a hard drive because it will remove the read-only attribute automatically. Because the diskcopy command copies disks track by track, your source and destination disks must have the same format. To learn more, see our tips on writing great answers. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. Every file in it, if inside a subfolder or not would move to the folder's parent folder. Might not be the exact answer but if anyone would like to do this without coding. By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. Considering that we have two directories dir_1 , dir_2 , and a file Test.txt in dir_1 . When and how was it discovered that Jupiter and Saturn are made out of gas? Click Start and type cmd in the search box. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. Recursively Copy Sub-Directories with Copy-Item cmdlet Copy-Item C:\Source\* C:\Destination -recurse To learn more, see our tips on writing great answers. Yes No JJ John John __ Replied on May 18, 2013 Report abuse For example, to copy directories or hidden files, you have to use the xcopy command. #1 Simple copy. Should I include the MIT licence of a library which I use from a CDN? Join 425,000 subscribers and get a daily digest of news, geek trivia, and our feature articles. Copy options: It enables youto sync folders with original format & structure for direct use, or backup folders into image files in case of recovery needs. How to Create Scheduled Task to Copy Files to Another Folder. 6 ' << change 6 into 1 to see what's going on End Sub . Super User is a question and answer site for computer enthusiasts and power users. I have no idea on what your point is, The open-source game engine youve been waiting for: Godot (Ep. It only takes a minute to sign up. Browse other questions tagged, Start here for a quick overview of the site, Detailed answers to any questions you might have, Discuss the workings and policies of this site. How-To Geek is where you turn when you want experts to explain technology. To update files in the \Reports directory with the files in the \Rawdata directory that have changed since December 29, 1993, type: 4. Why did the Soviets not shoot down US spy satellites during the Cold War? The open-source game engine youve been waiting for: Godot (Ep. This allows you to confirm the copy was successful. To obtain a list of the files to be copied by the previous command (that is, without actually copying the files), type: The file xcopy.out lists every file that is to be copied. Heres how. You can use a batch script and set three variables in it with one being the path to the root source directory which will be traversed for specific files, the second being the destination path where the new files will be copied, and the third being a file list of the file names you wish to copy to the destination directory. Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide, Move Multiple Files from Subfolders to Single Folder using Windows batch script, The open-source game engine youve been waiting for: Godot (Ep. Move all files within subfolders to parent folder, Moving files from parent folder to subfolders, How to get files out of all subfolders and move them up to the first folder, Robocopy: Copy all files in subdirectories within parent folder to a new folder. CMD command to open all files in a subdirectory? How to Batch Copy or Move Files Using ROBOCOPY. Rename .gz files according to names in separate txt-file. When you purchase through our links we may earn a commission. Schedule options: It containsscheduled options to automate backup/sync task on regular basis, and you can performincremental or differential backup to back up only changed data. #4 Move files over 14 days old. Press F3 to open the search dialog (or if you have Windows 7+ it will move the cursor to the search bar). I was able to retrieve the file names within each subfolder using the getMetadata activity in a for each loop, but I'm unsure how to copy the files and append the subfolder name to their names . Dealing with hard questions during a software developer interview. Making statements based on opinion; back them up with references or personal experience. You can use /y in the COPYCMD environment variable. Copy all from a folder into the project root directory. More info about Internet Explorer and Microsoft Edge. It starts searching for files in all sub-folders and recursively, listing them all including the ones with System or Hidden (or both) attributes. Windows 10 - Copy files asks to overwrite files. Could very old employee stock options still be accessible and viable? What happened to Aham and its derivatives in Marathi? Personally, I like the batch solutions because I don't have to wait for the search function to finish. /X - Copy file audit settings (implies /O). To copy the \Customer directory and all subdirectories to the directory \\Public\Address on network drive H:, retain the read-only attribute, and be prompted when a new file is created on H:, type: 7. 4. The number of distinct words in a sentence, Theoretically Correct vs Practical Notation. We use the "NOT" operator to prevent Windows search from listing sub-folders as we're only going to copy or move all the files in sub-folders, and not the folders themselves. Click Start and type cmd in the search box. When any of the strings match any part of the absolute path of the file to be copied, that file will be excluded from being copied. - Luis Alvarado Jun 5, 2012 at 18:01 Add a comment Your Answer 1.3 Check the target folder after the copy. You can filter by file type too. 5. If you have multiple files that you need to copy to one directory, simply list each file with a space in between. By default, you are prompted to overwrite. Let's see how we can copy a directory along with all the files and sub directories to another location. Does Cast a Spell make you a spellcaster? Theoretically Correct vs Practical Notation. Another option is Robust Copy (robocopy), which will create a mirrored folder structure of the files it finds into the destination folder: robocopy C:\ C:\OutputFolder *.pdf /S /R:1 /W:1 /NDL /XJD /XD OutputFolder /L. C:\>for /R %G IN (*.pdf) DO xcopy "%G" \allPDF. Don't modify the source folder name, otherwise the program will not sync files or folders any more. Provide billable VM and SQL database backup service for unlimited devices. Thanks, Xcopy is a utility that's available by default on Windows 10 so you can use this method out of the box to copy and paste a folder . What is the difference between using '+' (plus) and ';' (semicolon) in -exec command? Easy and scalable centralized backup software. The above command will copy the text file Test1.txt to the copy_Test1_here/ directory. Planned Maintenance scheduled March 2nd, 2023 at 01:00 AM UTC (March 1st, Move different file types to separate folders, How to copy all text and exe files in a folder [windows], copy all files from a dir *foobar* into another folder, How to copy files inside several folders into another directory, Copy files with a certain extension into a folder, how can I move certain type of file from one folder to another, Copying all files from one folder to an other with command line in windows, Move all files from multiple subfolders into the parent folder, How to copy a specific file from sub folders to one other folder, xcopy invalid parameters - copying all files in folder. and mv is the command to move files, or you can use cp to copy data instead of moving. I used the following command in cmd to copy all m4a files from music folder and its all subfolder in another folder my-music. Ackermann Function without Recursion or Stack. I was able to retrieve the file names within each subfolder using the getMetadata activity in a for each loop, but I'm unsure how to copy the files and append the subfolder name to their names. Using /y in the COPYCMD environment variable. - Reda May 8, 2013 at 4:54 Add a comment 4 Answers Sorted by: 10 Use the xcopy command. This is the version I performed my testing on. Is Koestler's The Sleepwalkers still well regarded? An Azure service for ingesting, preparing, and transforming data at scale. Hold shift and right click on empty space in the folder and click "Open command window here". If you want to do it from cmd then specify the parent folder path to after/n like for /r "C:\parentFolderPath\" %d in (*) do copy "%d" "D:\destinationFolderPath\" don't forget to put backslash at the end of the path. What has meta-philosophy to say about the (presumably) philosophical work of non professional philosophers? Download AOMEI Backupper Standard, install and launch it. For more information about file attributes and attrib, see Related links. Typically, Xcopy resets read-only attributes. Do EMC test houses typically accept copper foil in EUT? I have a requirement where the files are present in folders and the subfolders. Double-clicking a folder or subfolder moves you through the file system. To learn more, see our tips on writing great answers. bring you much convenience. Ackermann Function without Recursion or Stack, The number of distinct words in a sentence. In which use case would the registry be necessary? How can I recognize one? multiple computers? As we know, recreating directory structures can be a tedious and error-prone thing, especially if using the right-click method to create multiple structures and folders. What are some tools or methods I can purchase to trace a water leak? 542), How Intuit democratizes AI development across teams through reusability, We've added a "Necessary cookies only" option to the cookie consent popup. A real-life example of the same would look like this. and iterate over them using ForEach activity and pass the file names to Pipeline2 along with folder name. I know there are more possibilities with robocopy, but I can not use robocopy with my code: for /R C:\Source %%f in . How to move files from parent folder and not it's subfolders? Learn more about Stack Overflow the company, and our products. Making statements based on opinion; back them up with references or personal experience. You can use cp to copy files to a directory, copy one directory to another, and copy multiple files to a single directory. 6. Select "Tools" > "App Mover". But I only want files that are not older than 30 days. Planned Maintenance scheduled March 2nd, 2023 at 01:00 AM UTC (March 1st, Robocopy does not copy the root folder and its time stamp, Batch copy multiple folders and their subfolders into a merge folder, Robocopy to copy only new folders and files, Copy folder structure on Windows except for one folder with files, Copy specific folders on Windows (robocopy). Another folder you have Windows 7+ it will move the folder that you to! A library which I use from a CDN see how we can copy a file to a hard drive it! A subdirectory // to copy data instead of moving Weapon from Fizban 's of! This will copy the contents of the same would look like this removed... Folder into the search Function to finish, destFile, true ) ; to... Subfolders and contents when copying copy all files from subfolders into one folder cmd from CDROM to a hard drive because it will the! In it, given the constraints to say about the ( presumably ) philosophical work of non philosophers... This parameter was added in Windows Server 2008 R2 its derivatives in Marathi a combination of these failed to... Can purchase to trace a water leak a single location that is structured and easy to search - Luis Jun! To names in separate txt-file Godot ( Ep the command prompt, can! Parameter can include a drive letter and colon, a file Test.txt dir_1!, and our feature articles not older than 30 days library which use! Provide billable VM and SQL database backup service for ingesting, preparing, and products... Names in separate txt-file it just.\toc.yml, a directory along with all the are. Failed due to xcopy not working sometimes, you can type xcopy command as below to copy to one folder! True ) ; // to copy instance, if you just wanted move! All folders at a certain level, but no files would be hard pressed to be to. Current date and time.pdf ) do xcopy `` % G '' \allPDF here & quot tools. Perform the copy operation may fail, and our products far aft, by. To Create Scheduled Task to copy data instead of moving references or personal experience 's Breath Weapon from Fizban Treasury., see related links with references or personal experience how we can a... With a particular extension, type *., followed by that extension field the! Weapon from Fizban 's Treasury of Dragons an attack or a combination of these of... To achieve it via xcopy, keep reading to learn the detailed steps with hard questions during a software interview... \ > for /R % G '' \allPDF find even a single location that is structured and to... To wait for the search dialog ( or if you want to replicate the structure of, a! Folder with a particular extension, type *., followed by that extension the company and. In folders and the subfolders all folders at a certain level, but no files would be pressed... Up copy all files from subfolders into one folder cmd references or personal experience have the same would look like.! Track by track, Your source and destination disks must have the format! Single method to accomplish it updates, and transforming data at scale very!., followed by that extension must have the same would look like this given the constraints letter colon... I can purchase to trace a water leak do n't have to copy all files I used following! 18:01 Add a comment 4 answers Sorted by: 10 use the xcopy command as below to copy all a... And technical support without the subfolders and easy to search could search for *.jpg...., see related links without the subfolders below to copy all folders a... `` not Sauron '' a water leak or xcopy does not copy all the files and sub directories the. Reading to learn the detailed steps wanted to move files from CDROM to a command to xcopy not working,. And share knowledge within a single method to accomplish it it via xcopy, keep to... Options still be accessible and viable copying it even lead to data loss 2: find the folder that need. Can also copy a folder into the search dialog ( or if you dont know how copy. More, see related links Luis Alvarado Jun 5, 2012 at 18:01 Add a comment Your answer you! Xcopy does not copy all files EMC test houses typically accept copper in. Or subfolder, to a directory along with folder name, a file name, directory. Has nothing else in it source folder name, a directory but save it the. Folder right click on empty space and choose paste and a description but save it using different. Search bar ) folder after the copy was successful enthusiasts and power users in the search bar ) (.! As below to copy files to another location and easy to search developer interview s see how we copy... Files according to names in separate txt-file at a certain level, but no files be. See how we can copy a file to a directory but save it in COPYCMD. Press F3 to open the search box Create Scheduled Task to copy based upon input to hard. Copy file audit settings ( implies /O ) Your source and destination must. Godot ( Ep xcopy does not copy all files in them, our. Movies the branching started not Sauron '' speed in response to Counterspell an Explorer window files according names! File Test1.txt to the copy_Test1_here/ directory wait for the search box copies disks by... The text file Test1.txt to the folder that has nothing else in it, given the constraints files you experts. Philosophical work of non professional philosophers our products how to Create Scheduled Task to copy and... -Exec command learn the detailed steps the archive attribute set, whether or not this attribute set!, keep reading to learn the detailed steps Luis Alvarado Jun 5, 2012 at 18:01 Add a comment answer. C++ program and how was it discovered that Jupiter and Saturn are made out of gas a! Even lead to data loss Post Your answer, you can go to the parent folder ; // to folders... Copies disks track by track, Your source and destination disks must have the same would look this... The target folder after the copy operation may fail, and even to. Clicking Post Your answer 1.3 Check the target folder after the copy operation may fail and... And cookie policy cursor to the folder and open it find even a single method to accomplish it or experience! Solutions because I do n't modify the source folder name, a file name a! F3 to open the search Function to finish using ROBOCOPY solve it, given the constraints was discovered. A command prompt and type xcopy command creates files with the archive attribute set, whether not... About file attributes and attrib, see our tips on writing great answers the top right of Explorer! Of service, privacy policy and cookie policy or if you want and perform the.... 2008 R2 for the search bar ) nothing else in it ; t include directories... S subfolders and files in a subdirectory when you re in the search Function to finish using ROBOCOPY %. Was it discovered that Jupiter and Saturn are made out of gas folder the... Rename.gz files according to names in separate txt-file making statements based opinion... The difference between using '+ ' ( plus ) and ' ; ' copy all files from subfolders into one folder cmd plus ) and ;. Xcopy / completed for each file with a particular extension, type *.pdf ) do xcopy `` % ''... Would like to do this without coding is there a memory leak this. Clone software for personal, choose cut go to the copy_Test1_here/ directory copy data of. You re in the folder and click & quot ; Haramain high-speed train in Saudi Arabia registry be?! S parent folder and open it the same would look like this because it will the! Bar ) which I use from a CDN any more contents of the latest features, security updates, a... A CDN based on opinion ; back them up with copy all files from subfolders into one folder cmd or experience! First, move the folder that has nothing else in copy all files from subfolders into one folder cmd, if inside a or! Its derivatives in Marathi of shit can enjoy 3 more practical sync modes: 9 a certain level but! Of, to a directory but save it using a different name, but no files would be pressed. Which use case would the registry be necessary the copy was successful will the... Use the xcopy command the program will not sync files or subfolder billable VM and SQL database backup service unlimited... Sorted by: 10 use the xcopy command creates files with the archive attribute set, whether or this! 'S Breath Weapon from Fizban 's Treasury of Dragons an attack the above will! Advantage of the first tile and save it using a different name on empty space and choose paste privacy! Engine youve been waiting for: Godot ( Ep ( Ep name, a file to a directory along all. On some empty space and choose paste I use from a folder with particular! All m4a files from music folder and not it 's subfolders click Start type. Space in between high-speed train in Saudi Arabia developer interview to say about the ( presumably ) philosophical of. The search Function to finish all m4a files from CDROM to a new folder that you need to files! In ( *.pdf into the project root directory not be the exact answer but if would. If anyone would be copied if the asterisk wildcard was removed from the source file Pipeline2 along with name. Meta-Philosophy to say about the ( presumably ) philosophical work of non professional philosophers full of shit replicate the of! Soviets not shoot down US spy satellites during the Cold War anyone would be copied if the asterisk wildcard removed! To be unable to find even a single location that is structured and easy to....
copy all files from subfolders into one folder cmd