troubleshooting Question

robocopy - search and copy to single folder

Avatar of teotwawki
teotwawkiFlag for United States of America asked on
Windows BatchMicrosoft DOSVB Script
37 Comments1 Solution2917 ViewsLast Modified:
I've been putting off moving to Robocopy for some time now. I would like to have the copy progress display option (which xcopy lacks) so that i can see if large files are still being transferred. XCOPY does almost everything that I currently require... with one exception. I cannot find any way to have robocopy perform the following action in full:

1.) search the entire hard drive, beginning at the root of C:\
2.) locate all files of a specific extension (could be 1 file, could be 500 files) all in various subfolders.
3.) copy the files found to another drive and folder, say a network drive such as z:\data, WITHOUT keeping any folder structure. (aka "concatenate"  the structure).

example (old location):
c:\users\ken\my stuff.txt
c:\program files\notepad99\settings.txt

(new location - how it SHOULD look)
z:\data\my stuff.txt

I'm currently using XXCOPY to handle this now however it's not free to use in a corporate environment. We are covered according to our M$ TAM, to use ROBOCOPY.

My OS is XP & SVR 2003 right now. I've also tried robocopy in Win 7 with the same results as above.

SIDE NOTE:   Any suggestions to use something like RICHCOPY should include how to get filters to work properly because as of today, richcopy copies EVERYTHING in EVERY FOLDER even though i specify exactly what extensions i want it to copy. I use the GUI, switch to advanced, make my settings, and then use the code generated on the "other" window, then paste it into an elevated command prompt with no luck. Others have posted with this same issue as well on the MS forums with no answers from the developer. I'm using the latest version from their site however my version number shows the word "static" instead of a number.

Can this be done?

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 37 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 37 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros