Earlier we saw how to disable the confirmation window when emptying the Recycle Bin in Windows XP and Windows Vista. Here is a Registry hack to accomplish the same in Windows 7, using the excellent NirCmd tool. This registry hack replaces the Empty Recycle Bin command with NirCmd command-line so that the Recycle Bin can be emptied silently without any prompts. This also works from the Recycle Bin Tasks pane.

Using NirCmd to Silently Empty the Recycle Bin

1. Download NirCmd from Nir Sofer’s site.

2. Unzip and move NirCmd.exe to the C:\Windows\System32 folder.

3. Download w7-empty-bin-silent.zip and save to Desktop.

4. Extract the files to a folder, and run the file w7-empty-bin-silent.reg.

This replaces the Empty Recycle Bin command with "NirCmd.exe emptybin" command-line. Now, emptying the Recycle Bin either from the right-click menu or from the Tasks pane in the Recycle Bin, should not produce any prompts. There is also an undo REG file available inside the above zip archive.


Email SubscriptionPrefer an E-mail subscription?

Enter your email address:

Delivered by FeedBurner

4 Comments

  1. Baub
    said this on Thursday, April 5th 2012 9:38 pm

    Well Matt it has been over a year now and you still have not seem to remember that which you could not think of off the top of your head. This little hack seems like a more worth while attempt than waiting for the top of your head to figure it all out lol.

  2. C Lavoie
    said this on Friday, April 1st 2011 10:02 am

    This is very useful and gets rid of another windows annoyance, thanks a lot.

  3. Forrest
    said this on Thursday, February 24th 2011 10:41 pm

    Ran this on my x64 Windows 7 machine, and it works like a charm! Thank you.

    @ Matt: turning off the confirmation dialog when emptying the recycle bin REQUIRES “messing with the registry.” There is no other way to do this. You’re probably thinking of how the user can turn off the “delete confirmation dialog” within the Properties menu of the Recycle Bin.

    By the way, being able to “mess with the registry” is actually one of the main BENEFITS of using Windows compared to the Mac OS.

  4. Matt
    said this on Saturday, January 22nd 2011 4:15 am

    There is an easier way to achieve this without messing with the registry (messing with the registry is potentially dangerous), I cant think of how to do it off the top of my head.

Leave a Reply