• Welcome to Powerbasic Museum 2020-B.
 

News:

Forum in repository mode. No new members allowed.

Main Menu

How to quickly delete big bloated folders

Started by Guy Dombrowski, August 19, 2013, 08:07:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Guy Dombrowski

Have you tried lately to delete a big folder with zillions of subfolders containing lots of small files ?
It takes forever.  And if it is not too big and fit in the trash bin, it will be just as long to empty the bin.

With Win98, the old DELTREE command was working nicely and did the job in the blink an an eye.
But it will not work with WinXP, Vista, Win7 and Win8

But  I just found that the improved RD command (Remove Directory) will now work nicely.
It used to be only for empty directory but now you add /S and /Q it will clean the whole thing instantly

Command  :  RD Z:\BigFolder /S /Q

And you can call it with SHELL

John Spikowski

Guy,

If you press the SHIFT key while deleting a folder, it by-passes the recycle bin and permanently deletes the files.

John

Guy Dombrowski

True, it will save you the empty the recycle bin job.
 
But it is still slow if you have thousands of small files in hundred of sub folders.

RD is lightning quick

John Spikowski

Guy,

QuoteBut it is still slow if you have thousands of small files in hundred of sub folders.

Is this something you have to do often? (File collecting is your hobby?  :) )

Guy Dombrowski

#4
Not really, but that was the subject of a recent post by Eric Pearson in the PowerBacic forum.

And this is the solution I found with a quick  Google search.

http://www.raymond.cc/blog/deltree-command-replacement-in-windows-2000-or-windows-xp/