Removing files from folders - in bulk

Soldato
Joined
26 Feb 2004
Posts
4,799
Location
Hampshire, England.
Hi guys,

For a task at work I have approximately 20k folders with one, maybe up-to 5 files in them. I need them out of their current folder and moved into to a new directory for archiving. In most instances, just one level above. At the moment we're doing it manually...

Is there a script or anything out there that can add an option to the context menu (Windows 10) that would allow to say select all the folders and right-click, 'move contents' here?

Seems such a simple ask but if would save us all SO much time :rolleyes:

Thanks.
 
xxcopy

I believe SG can flatten directories.

If you're struggling with it, let me know and I'll treat a script.


Should be able to do this using "for" also.
 
Robocopy is more robust at this than xcopy. It can purge the files and directories too if required and you can multithread the concurrent file copy (ie, 8/16/32/64 files at a time) for example.
 
Back
Top Bottom