Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to change Recycle Bin settings from the command prompt or using VBScript?

Specifically, I want to:

  • Select the "Don't move files to the Recycle Bin, Remove files immediately when deleted" option
  • Clear the "Display delete confirmation dialog check box" option

Can this be done?

share|improve this question
Which version of Windows? In Win7+ (and maybe Vista as well), the "Don't move files..." option is a per-partition setting. If you can figure out the registry changes made when those options are selected, you could do the same from the command line too. Or else look into AutoHotkey's Send or VBScript's SendKeys methods, which can generate the keystrokes required to replicate this. – Karan Feb 22 '13 at 18:18
Well this could be a possible solution. Thank you Karan. However, Im looking for automating these 2 steps with the help of batch/vbscripting. Do you have any solution with respect to this requirement. – Tan Feb 26 '13 at 5:07

You must log in to answer this question.

Browse other questions tagged .