Solved How can selectively copy jpg and manage duplicate filenames

April 25, 2012 at 23:57:14
Specs: windows xp home ed , Pentium4 530 3.0 GHz/512 MB
I want to extract all of the jpg files from my Windows XP pc. I need to manage potential duplicate filenames. I'm open to changing duplicate filenames, or copying the directory structure of the source drive to the destination. The jpg files are in many directories, some I may not be aware of. I would also like to extend this solution to other filetypes (doc, xls). Thanks in advance.

See More: How can selectively copy jpg and manage duplicate filenames

Report •

April 26, 2012 at 00:04:38
✔ Best Answer
Install teracopy, so nothing goes wrong here.

Open a search window, and select where every your user folder is, or if you save to the C: drive, then select that, search for *.jpg

now you can click file select all, then copy, then paste where every you want. Teracopy will take over from there.

You can do this for any extension. *.doc *.xls or string them together *.jpg, *.bmp, *.xls

Forgot to mention that Teracopy will rename your duplicate files file(1) file(2) and so on

Report •

April 26, 2012 at 00:19:49
From command prompt, something like XCOPY C:\*.JPG D: /S and enter, (where D: is the destination drive) should work.

Edit You might want to add the /H switch:


in case some are hidden files. You can get a complete list of the switches by typing XCOPY/? and enter at a command prompt.

Report •

April 26, 2012 at 00:41:28
Yeah, I wouldn't use XCOPY for anything other than a one to one copy. But if you want to do it the hard way. What was the syntax for renaming duplicate files and skipping locked files again? How do you turn on error checking for that copy?

Report •

Related Solutions

April 26, 2012 at 01:29:38
Thanks! Will teracopy pull the files out of the sub-directories if I start at c:/ ? I don't know where all the .jpg files are.

Report •

April 26, 2012 at 02:25:07
Yeah, that's why you search for them first. They will appear as the individual files in the search box and will not be in any folders.

You just copy the individual files then paste them where ever you want.

Report •

April 26, 2012 at 18:53:35
The thread started off in the dos forum so I gave a dos answer. That in no way is a denial that there are other, perhaps more convenient, ways of doing it, although the XCOPY command does EXACTLY what the op says he wants. It copies all jpg and only jpg files to another drive while maintaining their directory structure. It does so without installing additional software. Of course to do the same with .doc or .xls files he need only change the extension and run the command again.

It's kind of nice to give the OP more than one option, don't you think?

Report •

April 30, 2012 at 22:04:42
Thanks for your help. I ended up using the search function to get a feel for where the files were that I wanted. As it turned out, there were MANY files that were jpg that I didn't want because they were icons in various programs. So I had to be a bit more surgical than I planned as far as selecting folders and being a big more surgical about what I copied.

Report •

April 30, 2012 at 22:06:31
Thanks. I ended up using a combo of search, narrowing in on the folders where my jpgs were, and then using teracopy which helped me have some peace of mind about the copies being good and dealing with duplicates. Just grabbing everything that the search came up with wasn't going to work because of artwork and icons that were installed with a variety of programs.

Report •

Ask Question