I have a mirror of a large website that I need to reorganize, most of the images and files I've been able to programmatically move and relink up; however, there are a few (few is a relative term, we're talking 3,000 odd files) I need to locate within the mess of folders.
I know the filename(s) (I have big long lists and I'm assuming they're unique, or at least unique enough that I can fix any collision manually) but not their location within the file structure, and I need to copy them to a separate directory so that I can then upload them.
In short, I have a list like
file1.jpg
file2.doc
file4.ppt
filesomethingelse.this
in a file (say, filelist.txt
).
And I have a folder structure like
folder\subfolder\file1.jpg
folder\subfolder\file2.doc
folder\subfolder2\filesomethingelse.this
folder\file3.jpg
folder\file4.ppt
and I want to get
secondFolder\file1.jpg
secondFolder\file2.doc
secondFolder\file4.ppt
secondFolder\filesomethingelse.this
Note that file3.jpg
should not be copied because it is not on the list.
Something command line like (xcopy or robocopy) would be the best option I guess, so I can batch up the requests.
Hope this makes sense.