Please tell me why, when I delete a file in Windows Explorer (select file, hit the delete key), it takes like 30 seconds. From the command line, it takes no time at all.
I'm already reasonably facile with cmd.exe, which has the benefit of being present on every system I work with. Not that I'm not looking forward to having something better at some point.
However, if it were just a matter of dropping to the command line, I'd be all set. However, there are many times where I'm using Explorer via the built-in dialog boxes of third-party GUI programs. So regardless of the shell I use, it's still a matter of broken functionality.
Maybe because your recycle bin is on the verge of reaching the limit?
Also, I believe delete from Windows explorer needs to notify many more listeners since it will be storing it in the recycle bin.. Such as making your COM dll registration to point at the recycle bin. . :)
I think you may be right. I had suspected the Recycle Bin, but thought I had emptied it earlier that day. Turns out I hadn't - there was a good 400 things in there, at about 200MB worth of crap.
I run a little scheduled daily script to empty my recycle bin of anything older than a few days. Not only does it speed up delete no end, it also speeds up shutdown, hibernate and suspend - for some reason, Explorer touches everything in the recycle bin on these events.
Since, last time I checked, 1% was the smallest amount of space you could allocate to the recycle bin (so about 600MB on my laptop...) there can be an awful lot of files in there.
But as someone also pointed out, a lot of things get notified when you delete an item in explorer.
Maybe I'm alone in this, but I've had the problem where the file to be deleted was a large file and I had to wait for my Antivirus program to scan the file before I could do anything with the file.
Oh, I'm sure you're not the only one to run into problems with virus software. Which is primarily why I turn off real-time scanning. I wouldn't run any AV software at all if I didn't have to to get on the Microsoft VPN.
Dan beat me to it as I was going to suggest liberal use of the SHIFT key (never knew about CTRL) to achieve the same effect: the delete operation bypasses the recycle bin.
Correct me if I'm wrong, but if you're going to just permanently delete files every time you delete, then why not turn off the recycle bin? Is it just to provide you the safety net of mistakenly deleting something?
By the way if your system is particularly slow I recommend you clean your registry and then do a registry defragmentation.
There are various registry cleaners that have a preview period but most of them limit the number of items you can clean. Most recently I used RegSupremePro but i've used a numbe of others.
To defrag your registry try pagedefrag from www.sysinternals.com.
This can make a huge speed difference in explorer operations.
Oh, man! I am not alone! The same thing happens to me, and it drives me freaking nuts.
ReplyDeleteBut it's so pretty. Isn't the aesthetic worth the time? ;-)
ReplyDeleteThat's yet another reason why I say, get a good command line shell (I use the Hamilton C Shell).
Raymond Chen is probably the person to ask that sort of question...
ReplyDelete:)
ReplyDeleteI'm already reasonably facile with cmd.exe, which has the benefit of being present on every system I work with. Not that I'm not looking forward to having something better at some point.
However, if it were just a matter of dropping to the command line, I'd be all set. However, there are many times where I'm using Explorer via the built-in dialog boxes of third-party GUI programs. So regardless of the shell I use, it's still a matter of broken functionality.
Maybe because your recycle bin is on the verge of reaching the limit?
ReplyDeleteAlso, I believe delete from Windows explorer needs to notify many more listeners since it will be storing it in the recycle bin.. Such as making your COM dll registration to point at the recycle bin. . :)
I think you may be right. I had suspected the Recycle Bin, but thought I had emptied it earlier that day. Turns out I hadn't - there was a good 400 things in there, at about 200MB worth of crap.
ReplyDeleteStill very annoying, even if I know the source.
I run a little scheduled daily script to empty my recycle bin of anything older than a few days. Not only does it speed up delete no end, it also speeds up shutdown, hibernate and suspend - for some reason, Explorer touches everything in the recycle bin on these events.
ReplyDeleteSince, last time I checked, 1% was the smallest amount of space you could allocate to the recycle bin (so about 600MB on my laptop...) there can be an awful lot of files in there.
But as someone also pointed out, a lot of things get notified when you delete an item in explorer.
So what's the command you run to do this?
ReplyDeleteMaybe I'm alone in this, but I've had the problem where the file to be deleted was a large file and I had to wait for my Antivirus program to scan the file before I could do anything with the file.
ReplyDeleteOh, I'm sure you're not the only one to run into problems with virus software. Which is primarily why I turn off real-time scanning. I wouldn't run any AV software at all if I didn't have to to get on the Microsoft VPN.
ReplyDeleteI almost always hit Ctrl when deleting - this keeps the file from going to the recycle bin. However deletion from the gui is still slow!
ReplyDeleteDan beat me to it as I was going to suggest liberal use of the SHIFT key (never knew about CTRL) to achieve the same effect: the delete operation bypasses the recycle bin.
ReplyDeleteCorrect me if I'm wrong, but if you're going to just permanently delete files every time you delete, then why not turn off the recycle bin? Is it just to provide you the safety net of mistakenly deleting something?
ReplyDeleteOOPs - it is shift delete.
ReplyDeleteBy the way if your system is particularly slow I recommend you clean your registry and then do a registry defragmentation.
There are various registry cleaners that have a preview period but most of them limit the number of items you can clean. Most recently I used RegSupremePro but i've used a numbe of others.
To defrag your registry try pagedefrag from www.sysinternals.com.
This can make a huge speed difference in explorer operations.
Good luck