At some point in the coming months I may be asked to copy a large number of small photos from a folder to be sent to one of our clients. My problem is that it will be thousands out of around 2.5m and will be given to me in a list, probably a csv or txt file. Normally I would use Robocopy to copy this number of files but it doesn't look like it is a viable answer due to it not being a . Is there a copy tool that I can use to copy files listed in a csv/txt file to a new source?
Thanks for the help.
Best Answer +BudMan , 21 January 2014 - 13:56
not sure why you would want to use robocopy in this use case? I am a fan of it to be sure, but wouldn't it be easier to use a command that supports a file list directly?
Are you putting that command in a batch file and running it, or just using it on the command line? So if you put it in a file you would need to change to %% vs %
Question - are all the files in the sources folder, no sub folders? So there are 2.5 million files in this one folder? Do any of these files have spaces in the names?
So I did a test without any spaces in names or subfolders.
So my list.txt is in c:\temp the folder I was actually running the command from - you need the () around it. Off the top not sure how you could get around sub folders in your source? Spaces in the names you might be able to get around with "'s in the textfile and using /F tokens= option..
Other than that you could have lists and run the command for every source folder... But as you can see list.txt is just list of the file names. Go to the full post