Windows 10: Best way to Clean-up a huge File Structure keeping only the good.

Discus and support Best way to Clean-up a huge File Structure keeping only the good. in Windows 10 Performance & Maintenance to solve the problem; Doing this manually is nearly impossible. The folder structure contains over 160,000 files that have accumulated over many years. Less than half of... Discussion in 'Windows 10 Performance & Maintenance' started by questorfla, Jan 26, 2019.

  1. Best way to Clean-up a huge File Structure keeping only the good.


    Doing this manually is nearly impossible. The folder structure contains over 160,000 files that have accumulated over many years. Less than half of these need to be kept. But they are buried among all the other files that need to be removed.

    I think it might be possible using some vartiation of robocopy to move only the specified filetypes from folder A to folder B and create the entire path as it moved the files. I don't know what combination of switches would be needed to accomplish this though and it is important that the original folder structure be maintained.

    After I have moved as many types as i can think of, I could examine what was left in folder A to see if I missed anything. If anyone knows of a utility or tool made to do this I would appreciate the name*Smile

    :)
     
    questorfla, Jan 26, 2019
    #1

  2. Best way to Clean-up a huge File Structure keeping only the good.


    Doing this manually is nearly impossible. The folder structure contains over 160,000 files that have accumulated over many years. Less than half of these need to be kept. But they are buried among all the other files that need to be removed.

    I think it might be possible using some vartiation of robocopy to move only the specified filetypes from folder A to folder B and create the entire path as it moved the files. I don't know what combination of switches would be needed to accomplish this though and it is important that the original folder structure be maintained.

    After I have moved as many types as i can think of, I could examine what was left in folder A to see if I missed anything. If anyone knows of a utility or tool made to do this I would appreciate the name*Smile
     
    questorfla, Jan 26, 2019
    #2
  3. ddelo Win User
    Best way to Clean-up a huge File Structure keeping only the good.


    Please provide an example and we'll create the robocopy command/commands.
    PowerShell can also be very helpful in filtering and copying file types.
     
    ddelo, Jan 26, 2019
    #3
  4. Bree Win User

    Best way to Clean-up a huge File Structure keeping only the good.

    Best way to Clean-up a huge File Structure keeping only the good.


    I think I'd use the older Xcopy for this (in fact, I have) as RoboCopy needs a few more switches to cope with unexpected things like junction points or locked files. It's defaults can be less than useful in such circumstances. I wrote myself a 'user files backup' batch file with RoboCopy and until I got the switches right it could hang or go into an infinite loop.


    Both RoboCopy and Xcopy have a /S option that will copy subdirectories. For Xcopy a simple command to copy all .mp4 files from folder A and recreate the folder structure in Folder B would be:

    XCOPY /S "Folder A\*.mp4" "Folder B\"
     
Thema:

Best way to Clean-up a huge File Structure keeping only the good.

Loading...
  1. Best way to Clean-up a huge File Structure keeping only the good. - Similar Threads - Best Clean huge

  2. Best way to upgrade Windows and keep files?

    in Windows 10 Gaming
    Best way to upgrade Windows and keep files?: I have a Dell pc with Windows 8.1 Embedded Industry Pro with a volume license expiring on 31/3/2033.I cannot get a new license for the same OS so I would like to upgrade. The free Windows 10 upgrade is either no longer available or I am experiencing a failure error when...
  3. Best way to upgrade Windows and keep files?

    in Windows 10 Software and Apps
    Best way to upgrade Windows and keep files?: I have a Dell pc with Windows 8.1 Embedded Industry Pro with a volume license expiring on 31/3/2033.I cannot get a new license for the same OS so I would like to upgrade. The free Windows 10 upgrade is either no longer available or I am experiencing a failure error when...
  4. Is it is a good way to clean thermal paste?

    in Windows 10 BSOD Crashes and Debugging
    Is it is a good way to clean thermal paste?: Hi, I'm hoping to buy some mx arctic thermal paste for my laptop, and I was wondering what I should do to clean off the nearly 7 year old stock stuff.Some players recommend using 70-90% iso alcahol with a q-tip, but first rubbing it off with a dry paper towel? And dipping the...
  5. Best way to fully clean the register?

    in Windows 10 Ask Insider
    Best way to fully clean the register?: Hi, I would like to fully clean my register, i have some Issues with malware. Fully clean windows wipe and reinstall don't affect the register. Is there any software that does this? Doing it manually would take ages :/. https://imgur.com/a/CucSQ9o submitted by...
  6. Best way to clean up/ delete files?

    in Windows 10 Ask Insider
    Best way to clean up/ delete files?: I’ve been trying to run a virus scan on my Windows 10 laptop, but every time I run it my laptop overheats. I apparently have over 300k files. Is their any way I can lessen these files so my computer doesn’t overheat? (I don’t know anything that would help besides %temp% and...
  7. Best way to perform a clean installation...

    in Windows 10 Installation and Upgrade
    Best way to perform a clean installation...: I'm running Win 10 Pro Insider 2004 (19564.1005) and I've been noticing little problems here and there. These are very small, but at the same time, can be frustrating. Performance degradation to the point of being non usable and having to reboot, windows update doesn't always...
  8. Best way to Clean-up a huge File Structure keeping only the good.

    in Windows 10 Support
    Best way to Clean-up a huge File Structure keeping only the good.: Doing this manually is nearly impossible. The folder structure contains over 160,000 files that have accumulated over many years. Less than half of these need to be kept. But they are buried among all the other files that need to be removed. I think it might be possible...
  9. Best and safest way to Clean My Files

    in Windows 10 Performance & Maintenance
    Best and safest way to Clean My Files: I have a lot of old and unwanted files on my comp and would be grateful if anyone could advise me which is the safest and best cleaner for a novice (Me) to use. 114229
  10. Best way to partition a clean install?

    in Windows 10 Installation and Upgrade
    Best way to partition a clean install?: I'm likely to want to do a complete clean install, perish the thought. Or maybe I'll get a new computer. This one was fast and loaded, but it's about 6 years old now. Same considerations will apply in both cases I think. I just ran Macrium to backup Win, and find the...