Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.