Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


eracode

Smpl Mnmlst
8875 posts

Uber Geek

ID Verified
Trusted
Subscriber

#64531 17-Jul-2010 10:26
Send private message

In Win XP I have a heap of folders and I want to copy the contents (mp3 files) of all the folders into one new folder, i.e. without the original folders being in the new folder.

Is there a quick way to do this in one hit without having to open each folder individually, and then copy and paste contents of each folder into the new one?




Sometimes I just sit and think. Other times I just sit.


Create new topic
bvidulich
58 posts

Master Geek


  #352609 17-Jul-2010 11:17
Send private message

You could try doing a search in the parent folder for *.mp3, and then cut and paste the files in the results screen into the new folder.



eracode

Smpl Mnmlst
8875 posts

Uber Geek

ID Verified
Trusted
Subscriber

  #352613 17-Jul-2010 11:24
Send private message

Great thinking - many thanks




Sometimes I just sit and think. Other times I just sit.


freitasm
BDFL - Memuneh
79314 posts

Uber Geek

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #352618 17-Jul-2010 11:37
Send private message

Better still you can just open a command prompt and execute this:

FOR /R %%G IN (*.mp3) DO copy "%%G" \temp\destination

Replace the \temp\destination with the folder you want to receive it. Run this from the parent folder for all those folders...






Please support Geekzone by subscribing, or using one of our referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies | Hatch | GoodSync 




SepticSceptic
2195 posts

Uber Geek

Trusted

  #353399 19-Jul-2010 13:57
Send private message

Just had to look that up :-)

"
FOR /R [[drive:]path] %variable IN (set) DO command [command-parameters]

Walks the directory tree rooted at [drive:]path, executing the FOR statement in each directory of the tree. If no directory specification is specified after /R then the current directory is assumed. If set is just a single period (.) character then it will just enumerate the directory tree."

though:

"To use the FOR command in a batch program, specify %%variable instead of %variable. Variable names are case sensitive, so %i is different
from %I."

The way I read it, shouldn't you be using just the one % since you are outside of a batch file ?

http://www.computerhope.com/forhlp.htm#03

freitasm
BDFL - Memuneh
79314 posts

Uber Geek

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #353400 19-Jul-2010 13:59
Send private message

It makes no difference. At least with the test perfomed before posting the command here.





Please support Geekzone by subscribing, or using one of our referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies | Hatch | GoodSync 


Create new topic





News and reviews »

Gen Threat Report Reveals Rise in Crypto, Sextortion and Tech Support Scams
Posted 7-Aug-2025 13:09


Logitech G and McLaren Racing Sign New, Expanded Multi-Year Partnership
Posted 7-Aug-2025 13:00


A Third of New Zealanders Fall for Online Scams Says Trend Micro
Posted 7-Aug-2025 12:43


OPPO Releases Its Most Stylish and Compact Smartwatch Yet, the Watch X2 Mini.
Posted 7-Aug-2025 12:37


Epson Launches New High-End EH-LS9000B Home Theatre Laser Projector
Posted 7-Aug-2025 12:34


Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.