How to delete a very large folder
19 min read
See here: http://www.google.com/search?hl=en&q=f…G=Google+Search
I've not used any of them extensively, though I tried UltraExplorer and it looks and feels a lot like Windows Explorer.
Another possibility would be Explorer Plus 10 (Free Trial).
I just wanted to take the time to thank everyone for all their suggestions.
As I stated earlier I won't have access to the computer until Monday at the earliest. I think I will probably try the command line solution first.
It seems like the quickest and easiest way to rid myself of this headache.
As soon as I get a chance to try out the suggested solutions I will be sure to post back here and give you my results.
Or worst case scenario I be back for some more suggestions.
So, the main purpose of your program would be to resolve this problem by allowing me to select 4,000 files and then right-click -> Delete It Fast.
However, the added ability to handle files and folders would allow us to also bypass the overhead that Explorer has even when trying to delete a folder that contains a lot of files and folders.
I just researched some of this context menu stuff. Its very interesting. Obviously, there are a few different ways to do this. I didn't find anything definitive. I added a test item to my context menu. Basically, I created a command like this cmd /K "echo %1" to my right-click menu. %1 is the parameter passed to the echo command when I click this context menu item. If I right-clicked one file and selected this test command, sure enough, a command prompt window opened and I got the filename (not the path, interestingly enough) echoed to me. However, if I selected multiple files, and then tested this command, I didn't get one long list of files echoed to the command prompt. Instead, it opened a command prompt window for each file and echoed only the one file name. In other words, for every file I selected, it ran my command. This is certainly not going to work right, so there must be another way. The secret probably lies in how the "Send to" menu works. Because, in the case of send to, I can select multiple files, and it will send all these files to one location (such as a .zip file) without running the program multiple times, once for each file. There is definitely a way to do this Vectris, and it is certainly a nice challenge. I don't believe the answer will lie in the command line parameters, simply because of the fact that it would get too long very quickly and not be valid. The command line, I believe, is limited to 255 characters. Instead, I believe that explorer will create a collection of items pertaining to each file selected and then pass a pointer to the context menu program. You just have to figure out what that interface is.
Maybe we should create a new thread in the programming section about this project?
The above link is probably going to take you way outside your comfort zone. Not only are all the examples I find written in C++, but they are also not standard executable programs. They are DLLs and COM objects that explorer actually loads into memory and keeps available for when files/folders are right-clicked.
If you need all the information you can get try this google search: http://www.google.com/search?hl=en&q=h…mp;oq=&aqi=
You're going to have way too much fun on this project.. Its not fair!
If I just click a folder and delete that folder, even if there are thousands of files underneath it, explorer will take a while, but it will not eat up all the RAM and basically crash.
Judging by the purpose of this topic I thought that even deleting a folder would cause a crash. Otherwise OCD would just right click the folder and delete it. But I thought that was were it was crashing.
Anyways I'll look into the Shell Examples and how to do them in VB.Net and see if I can find anything. I'm a good at coding in VB but I have never had much success when trying to go outside of it and incorporate other more advanced tools.
Just wanted to post an update on how my attempt to remove such a large number of files went. It went off without a hitch.
I went from this
to this
in a mere 20 minutes.
@appleoddity,
Your solution worked like a charm, thank you. There was another file in the folder that she wanted to keep so I kept the command line script
just as you had written it.
@ m-r-u, 8210GUY, Vectris, Ztruker, Doug, Abydos
Thanks for all your input and suggestions.
Still having this problem?
This topic is from the What the Tech archive and can't take new replies. Geeks to Go is an active, free help community run by volunteers. Post your question there and a person, not a bot, will work through it with you.