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.

I'm looking for a simple Batch which clears all files/folders in my Recycler on Volume C: and under Windows 7 x64.

DEL C:\Recycler\*.*

I thought this is a good try, but no success.

The way over cleanmgr /sagerun:1 is NOT what i'm looking for. (already posted here)

Empty recycling bin from command line

(If nothing helps I'll try delage32)

share|improve this question
    
Don't see why recycler would work -- the recycle bin has not been a "Recycler" folder on the drive since the Win9x days. –  Billy ONeal Sep 22 '10 at 20:34
    
@Billy: Yes it has, it's just that now, it's a System + Hidden folder, plus in Windows Vista/7 it's been changed to being called $Recycle.Bin. –  Hello71 Sep 22 '10 at 20:50
    
There are several utilities out there that do this. Are you open to downloading one of these and running it from your batch file? –  Beaner Sep 22 '10 at 21:07
add comment

2 Answers

up vote 1 down vote accepted

I use rmdir /q /s C:\Recycler on Windows XP, and a similar one for Windows 7 with $Recycle.Bin. In the latter, you must be running as Administrator.

share|improve this answer
add comment

I don't believe you actually can limit this to a specific drive. The recycle bin itself is not provided as a part of the system itself; rather it is provided as a convenience by the Shell. At least as far as I am aware, it is drive/device agnostic.

You can use NirCmd with the command nircmd emptybin to empty the recycle bin, but emptying the recycle bin does so on all drives.

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.