Powerbasic Museum 2020-B

General Category => General Discussion => Topic started by: Guy Dombrowski on August 19, 2013, 08:07:35 PM

Title: How to quickly delete big bloated folders
Post by: Guy Dombrowski on August 19, 2013, 08:07:35 PM
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
Title: Re: How to quickly delete big bloated folders
Post by: John Spikowski on August 19, 2013, 08:13:26 PM
Guy,

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

John
Title: Re: How to quickly delete big bloated folders
Post by: Guy Dombrowski on August 19, 2013, 10:45:05 PM
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
Title: Re: How to quickly delete big bloated folders
Post by: John Spikowski on August 19, 2013, 10:49:30 PM
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?  :) )
Title: Re: How to quickly delete big bloated folders
Post by: Guy Dombrowski on August 20, 2013, 03:39:57 AM
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/