I have been sent 3 seperate cds containing jpg photos. the problem is the photos are individual files in individual folders i.e. a cd contains 20 folders and each folder contains just 1 picture. (see attatchment) Is there a quick way of copying all of the pictures into a new folder? At the moment I only know to open each folder and copy paste each picture into a seperate new folder?
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
extracting multiple folder contents to one folder
Home » Forums » AskWoody support » Windows » Windows – other » extracting multiple folder contents to one folder
- This topic has 24 replies, 7 voices, and was last updated 15 years, 7 months ago.
AuthorTopicWSjaystarter1
AskWoody LoungerOctober 19, 2009 at 5:36 am #463279Viewing 2 reply threadsAuthorReplies-
WSbigaldoc
AskWoody LoungerOctober 19, 2009 at 6:17 am #1182135… Is there a quick way of copying all of the pictures into a new folder? …
I’ve never done this from a CD. In order to do it, you’ll probably have to open a separate instance of Windows explorer and a window for the CD contents. It’s worth a try.
Since you can’t copy TO the CD, create the folder you want on the hard drive. Using the search function on the CD, search for all files with a .JPG extension and when you get that list, you might be able to highlight them all and copy to the folder on the hard drive.
-
WSjaystarter1
AskWoody LoungerOctober 19, 2009 at 7:55 am #1182152Since you can’t copy TO the CD, create the folder you want on the hard drive. Using the search function on the CD, search for all files with a .JPG extension and when you get that list, you might be able to highlight them all and copy to the folder on the hard drive.
[/quote]Nice idea. just tried it but even selecting the actual pics from the search when i copy to new folder they end up in individual folders again
-
WSbigaldoc
AskWoody LoungerOctober 19, 2009 at 8:17 am #1182158Nice idea. just tried it but even selecting the actual pics from the search when i copy to new folder they end up in individual folders again
Hmmm… I don’t remember how I did it but I have a couple of Windows Explorer context menu entries (see attachment) that DO work without copying the folder structure. My memory tells me that some utility I ran did the creation for me, but if you’re up to a bit of registry modification, I just found this:
[indent]Windows XP: Add “Copy to Folder” and “Move to Folder” to Explorer Context Menu – HelpWithWindows.com
[/indent]I’ll keep looking through my software respository to see if I can remember which utility did the work for me.
-
-
WSjaystarter1
AskWoody LoungerOctober 19, 2009 at 8:17 am #1182157I’ve never done this from a CD. In order to do it, you’ll probably have to open a separate instance of Windows explorer and a window for the CD contents. It’s worth a try.
Since you can’t copy TO the CD, create the folder you want on the hard drive. Using the search function on the CD, search for all files with a .JPG extension and when you get that list, you might be able to highlight them all and copy to the folder on the hard drive.
One way Ive tried is to open 2 windows with the cd contents and the “new” open folder side by side and selected each pic and dragged it into the new folder. It works of course but this was supposed to be my day off! leaving it for now and try again when I’m less angry
-
WSbigaldoc
AskWoody LoungerOctober 19, 2009 at 8:36 am #1182160One way Ive tried is to open 2 windows with the cd contents and the “new” open folder side by side and selected each pic and dragged it into the new folder. It works of course but this was supposed to be my day off! leaving it for now and try again when I’m less angry
Sorry for your frustration! I found what I used to add those two context menu entries and it was a couple of years ago, so I can’t remember where I got this.
The attached ZIP file has two registry mods that will add the two menus I wrote about. I did just now try my example using the search and the “copy to folder” and it works from multiple folders to one without copying folder structure.
Good luck.
-
WSjaystarter1
AskWoody LoungerOctober 19, 2009 at 8:43 am #1182161Sorry for your frustration! I found what I used to add those two context menu entries and it was a couple of years ago, so I can’t remember where I got this.
The attached ZIP file has two registry mods that will add the two menus I wrote about. I did just now try my example using the search and the “copy to folder” and it works from multiple folders to one without copying folder structure.
Good luck.
Whoa! Whoa! I know you’ll be interested in this Bigal…….Paint Shop Pro…..just had a flash of memory and of course PSP (or any other image editor I presume) will do a Batch Process. Just had a quick look and it looks like I can open and select any number of files and do a batch process of “copy” to specified place (folder in trhis case). I will try this later and then (am I hoping for too much?) I might be able to resize a bunch of them all at once in the same way.
-
WSHansV
AskWoody LoungerOctober 19, 2009 at 9:02 am #1182166Several graphics tools can do this, for example FastStone Photo Resizer (free). You can move pictures from a whole set of folders to a single folder (make sure to clear the option “Preserve folder structure of input list”) and resize them at the same time.
-
WSbigaldoc
AskWoody LoungerOctober 19, 2009 at 9:10 am #1182168Whoa! Whoa! I know you’ll be interested in this Bigal…….Paint Shop Pro…..just had a flash of memory and of course PSP (or any other image editor I presume) will do a Batch Process. Just had a quick look and it looks like I can open and select any number of files and do a batch process of “copy” to specified place (folder in trhis case). I will try this later and then (am I hoping for too much?) I might be able to resize a bunch of them all at once in the same way.
Hmmm again. I’ve never tried that in PSP where the files are in different folders. Let us know how you do.
But, just for the future, you might want to add those two context entries. I think it’ll be even easier than using PSP. My test took less than two minutes.
I still don’t remember where I got the zip file, but here’s what I think are two confirming places where such is found. The first link seems to indicate Vista and Windows 7 but may be where I got it: Add Copy To / Move To on Windows 7 or Vista Right-Click Menu.
And here’s a second source from Kelly’s Korner, a site MANY of us use for XP tweaking. See line #45 on the left side: Troubleshooting Windows XP, Tweaks and Fixes for Windows XP.
-
-
WSStuartR
AskWoody Lounger -
WSArgus
AskWoody LoungerOctober 19, 2009 at 11:22 am #1182186A warning about CopyTo MoveTo
After installing this I had some strange problems with Right Click menus, especially if I had multiple things selected. Sometimes the wrong right click action seems to take place.
Stuart,
I remember adding those menu entries a long time ago (these features were present in Windows 95 Powertoy, Send to X, a long with other entries, I think, so many people went looking for something similar in XP and then some different reg edits were mentioned).But somehow my test (perhaps a manual reg edit) back then backfired also, if I remember correct, so I removed them. I can’t remember how and why, and I’ve not tested the reg edit this time around. But perhaps if one compares selecting one file with selecting several, as you said.
-
WSbigaldoc
AskWoody LoungerOctober 19, 2009 at 11:39 am #1182191A warning about CopyTo MoveTo
After installing this I had some strange problems with Right Click menus, especially if I had multiple things selected. Sometimes the wrong right click action seems to take place.
I don’t know what to say about that one, Stuart. Depends a lot on WHAT you installed. As I admitted, I don’t recall where I got the zip file but I did look again in my Software storage directory and the file is dated July 2008, so I’ve been using the revised context menus since then and never had any trouble.
Since my last post, I did compare the regedit entries at both the sites I linked to and the reg entries point to the same place in the registry. I’m pretty sure I didn’t use the ones from Kelly’s Korner, but nevertheless they work OK. Here’s a couple of shots of what I see, using first Windows search and then selecting some files from different folders. If I completed the task, the files were copied to the specified folder without their original folders embedded.
I guess we all (sometimes) have different experiences. And a PS if you will: Kelly’s selections are probably the safest to try since she also includes an “undo” version in case you don’t like what you get.
. . . .
-
WSArgus
AskWoody LoungerOctober 19, 2009 at 12:30 pm #1182203I don’t know what to say about that one, Stuart. Depends a lot on WHAT you installed. [snip]
Hi Al,
I think that your suggestion about the menu additions is as good as several of the others. When Stuart mentioned some odd findings I remembered that I had tried some of these before, as I posted, and that there were something that at least I stumbled upon.I think I now have found what it was; at least it rings a bell. As I said, back then if I remember correct different reg edits circulated and depending on where you added it in the registry you could have some odd results. But back then I guessed it was something with me using a non-English OS.
Anyhow, on the second page, “manual way”, that is linked from the page in your first link (How-To Geek) I find in the comments a problem with the right-click explore entry, especially on the Start menu. Comment October 2, 2007 5:05 pm.
And a bit down a reply, comment June 24, 2008 6:27 pm
It says that one can move the entries in the registry, but then “Move To” and “Copy To” only work for files, not folders.
I think it was something along those lines that was my problem then.
-
-
-
-
-
BATcher
AskWoody_MVPOctober 19, 2009 at 6:27 am #1182138I have been sent 3 separate cds containing jpg photos. the problem is the photos are individual files in individual folders i.e. a cd contains 20 folders and each folder contains just 1 picture. (see attatchment) Is there a quick way of copying all of the pictures into a new folder? At the moment I only know to open each folder and copy paste each picture into a separate new folder?
Utterly trivial via the Command Prompt window! (Or a BATch file…)
First create your target directory – I’m calling it C:Target Directory – using whatever you like, maybe even MD “C:Target Directory” in a Command Prompt window
Now, in the Command Prompt window, assuming your DVD drive is D:, do
XCOPY D:*.* “C:Target Directory” /S
If there is other Stuff on the CD, you can change the D:*.* to D:*.JPEG or whatever, to restrict what gets copied (I couldn’t see what the file extension was)…BATcher
Plethora means a lot to me. -
WSLeif
AskWoody LoungerOctober 19, 2009 at 7:02 am #1182143 -
BATcher
AskWoody_MVPOctober 19, 2009 at 9:32 am #1182172I may be misunderstanding something, but doesn’t that batch command copy files and folders? I understood the requirement was to compile a single folder containing just the contents of the multiple source folders.
Yes, you’re right – I tested it using
XCOPY C:*.TXT D:Test /SYou would have to specify a file extension for it to do what was requested… Sorry!
BATcher
Plethora means a lot to me.
-
-
WSjaystarter1
AskWoody LoungerOctober 19, 2009 at 7:57 am #1182154Utterly trivial via the Command Prompt window! (Or a BATch file…)
First create your target directory – I’m calling it C:Target Directory – using whatever you like, maybe even MD “C:Target Directory” in a Command Prompt window
Now, in the Command Prompt window, assuming your DVD drive is D:, do
XCOPY D:*.* “C:Target Directory” /S
If there is other Stuff on the CD, you can change the D:*.* to D:*.JPEG or whatever, to restrict what gets copied (I couldn’t see what the file extension was)…Nope. got all the folders again instead of the individual pictures
-
BATcher
AskWoody_MVP -
WSArgus
AskWoody LoungerOctober 19, 2009 at 3:25 pm #1182257Nope. got all the folders again instead of the individual pictures
I was thinking somewhat along those lines as BATcher mentioned; but as you said it also created subfolders. A bit complicated it seems and it depends on where you run it, the folder structure and so I thought about something else for a moment, the DIR command and how you can exclude folders (/A-D), and did some searching; apparently this question has been asked before …
At petri.co.il forums I found this:
Copy only files, not folder structure from a directory
http://www.petri.co.il/forums/showthread/?t=24778The “one-liner” seemed to work well with my tests (I changed Source and Destination).
-
BATcher
AskWoody_MVPOctober 20, 2009 at 12:10 am #1182301I was thinking somewhat along those lines as BATcher mentioned; but as you said it also created subfolders. A bit complicated it seems and it depends on where you run it, the folder structure and so I thought about something else for a moment, the DIR command and how you can exclude folders (/A-D), and did some searching; apparently this question has been asked before …
At petri.co.il forums I found this:
Copy only files, not folder structure from a directory
http://www.petri.co.il/forums/showthread/?t=24778The “one-liner” seemed to work well with my tests (I changed Source and Destination).
I thought about the problem overnight and have just tested this simplistic BATch file:
@echo off
md “C:Many Pictures”
for /f “tokens=*” %%a in (‘dir /b /s /a-d D:*.jp*’) do copy “%%a” “C:Many Pictures”then I read the above post!
My version works, but, as for all BATch files, if the directory name includes ‘poison characters’ like &, ( and ) then the files in that directory won’t be copied.
It takes a long time to ‘start’ because it is doing a directory list of the entire CD/DVD before doing any copying.
Change the target directory name (both places!) and filename extension to suit – you could possibly use D:*.* if there are no other files than those you want on the CD.Not quite as trivial as I thought!
BATcher
Plethora means a lot to me.
-
-
-
-
WSbigaldoc
AskWoody LoungerOctober 19, 2009 at 5:56 pm #1182278I hope Jay will check in here and at least try the Kelly’s Korner registry edits since they are reversible if needed. I don’t mean to be rude but all the other methods suggested in this thread are a lot more drawn out than a simple Explorer right-click with those two changes in place.
Just for the heck of it, while I’ve been away from here, I checked my Vista installation and I added those two right-click options to Vista a year ago by way of WinBubbles which is now available for Windows 7.
In the meantime, I applied the two registry edits in my zip file to my (temporary) Windows 7 RC installation and they worked just fine. The two additions for copy and move to folder were added nicely.
OK, I’m done “preaching.”
-
WSArgus
AskWoody LoungerOctober 19, 2009 at 7:53 pm #1182291I hope Jay will check in here and at least try the Kelly’s Korner registry edits since they are reversible if needed. [snip]
I’ve just tested the copy to / move to reg. edit from Kelly, it’s the “630 & 631” mentioned at several other places; as you said they can be found at several places, Al. And yes Al, Kelly usually has an undo, removing them; so that part is easy; it’s easier using her reg files many times.
It’s the 630 & 631:
Copy To “{C2FBB630-2971-11D1-A18C-00C04FD75D13}”
Move To “{C2FBB631-2971-11D1-A18C-00C04FD75D13}”It works well so far in moving single or several files, but then how do you select several files in as many folders at one time?
Anyhow, just to explain what I meant that I found with these “ContextMenuHandlers”; apparently it has some small problem with the Start menu folders on the Start menu. If I select (and yes, we don’t do this very often) a folder by right-clicking on it and select “Explore” it first opens the Move dialogue, and if I cancel that one it then opens the Copy dialogue, and if I cancel that one as well, I finally get the Windows Explorer.
I don’t know if this one-liner in the Run box is a lot more drawn out than using the “Copy to dialogue”? How do you select multiple files in multiple folders? That would be a separate instance of Windows explorer for every folder to reach the files, wouldn’t it? Otherwise you would get the folder structure.
Code:%comspec% /k title * & @For /F "Delims=" %! in ('Dir "F:Test" /b /s /a-d 2^>nul') do @echo.%! &(@xcopy "%!" "E:Copy" /i /y /h /q /c >nul)
Replace “F:Test” with the source, that’ll be the CD root.
Replace “E:Copy” with the destination folder.
And hit OK.
(Credit to “Rems”, a Mod at the petri.co.il forums that I mentioned earlier.)I tested it on three subfolders with two subfolders in each, and each of them with one file, all six files copied to the destination folder in one batch.
If there happens to be one or two other files (non jpg) copied in the process, then they are easily deleted afterwards (since all are in one folder).
-
WSbigaldoc
AskWoody Lounger -
WSArgus
AskWoody LoungerOctober 20, 2009 at 11:05 pm #1182448Windows Explorer Search.
OK, a combination of search and a quick access to the copy dialogue; yes I see you mentioned search in your first post, sorry.
But that could be done without the context menus (via ctrl-c/ctrl-x etc.) with only another window open or by moving to the right folder/drive inside the same (search) window. But your method only requires one window.
The reason I removed the context menus back in the days of the Gold/SP1 was sometimes odd results and finally some articles that confirmed that. One link about using the dialogues out of context but in the context menus so to speak; this post by Raymond Chen, at his The Old New Thing: What goes wrong when you add “Copy To” to the context menu
I guess it all depends on how you work with the context menus, what kind of software installed, if you stumble upon anything odd; there are some examples on the net.
-
-
-
WSjaystarter1
AskWoody LoungerOctober 20, 2009 at 5:03 am #1182311I hope Jay will check in here and at least try the Kelly’s Korner registry edits since they are reversible if needed. I don’t mean to be rude but all the other methods suggested in this thread are a lot more drawn out than a simple Explorer right-click with those two changes in place.
Just for the heck of it, while I’ve been away from here, I checked my Vista installation and I added those two right-click options to Vista a year ago by way of WinBubbles which is now available for Windows 7.
In the meantime, I applied the two registry edits in my zip file to my (temporary) Windows 7 RC installation and they worked just fine. The two additions for copy and move to folder were added nicely.
OK, I’m done “preaching.”
Sorry folks for not joining back in earlier but it all got a bit too complicated for me. First off for my particular problem I found that I could create any number of “Batch Process” scripts in my image editor Paint Shop Pro X2. That’s OK for images and as far as other folders are concerned I tried Kelly’s Korner reg edit which worked fine and also reversed back with no apparent problems, I will be using that from now on. Thx for the original link Bigaldoc
-
Viewing 2 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Secure Boot Update Fails after KB5058405 Installed
by
SteveIT
1 hour, 16 minutes ago -
Firefox Red Panda Fun Stuff
by
Lars220
5 hours, 47 minutes ago -
How start headers and page numbers on page 3?
by
Davidhs
9 hours, 19 minutes ago -
Attack on LexisNexis Risk Solutions exposes data on 300k +
by
Nibbled To Death By Ducks
3 hours, 55 minutes ago -
Windows 11 Insider Preview build 26200.5622 released to DEV
by
joep517
18 hours ago -
Windows 11 Insider Preview build 26120.4230 (24H2) released to BETA
by
joep517
18 hours, 2 minutes ago -
MS Excel 2019 Now Prompts to Back Up With OneDrive
by
lmacri
7 hours, 43 minutes ago -
Firefox 139
by
Charlie
18 minutes ago -
Who knows what?
by
Will Fastie
13 hours, 7 minutes ago -
My top ten underappreciated features in Office
by
Peter Deegan
18 hours, 45 minutes ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
13 hours, 9 minutes ago -
Misbehaving devices
by
Susan Bradley
20 hours, 54 minutes ago -
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
2 days ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
3 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
1 day, 23 hours ago -
Discover the Best AI Tools for Everything
by
Alex5723
22 hours, 28 minutes ago -
Edge Seems To Be Gaining Weight
by
bbearren
1 day, 13 hours ago -
Rufus is available from the MSFT Store
by
PL1
1 day, 21 hours ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
3 days ago -
KB5061768 update for Intel vPro processor
by
drmark
1 day ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
22 hours, 57 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
2 days, 20 hours ago -
Office gets current release
by
Susan Bradley
2 days, 22 hours ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
4 days, 12 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
3 days, 21 hours ago -
Stop the OneDrive defaults
by
CWBillow
4 days, 13 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
4 days, 23 hours ago -
X Suspends Encrypted DMs
by
Alex5723
5 days, 1 hour ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
5 days, 2 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
5 days, 2 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.