MSFN Forum: Command line to empty Recycle bin? - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Command line to empty Recycle bin? Rate Topic: -----

#1 User is offline   Asp 

  • Member
  • PipPip
  • Group: Members
  • Posts: 106
  • Joined: 17-April 05
  • OS:XP Pro x86
  • Country: Country Flag

Posted 10 June 2009 - 06:43 AM

Is there a built-in command that I can use to empty the Recycle bin in Win2k?
I'd like to add that to batch files I use to clean up crap and make room.

If not, a simple third-party utility?

This post has been edited by Asp: 10 June 2009 - 06:44 AM



#2 User is offline   Colonel O'Neill 

  • Member
  • PipPip
  • Group: Members
  • Posts: 256
  • Joined: 22-July 08
  • OS:none specified
  • Country: Country Flag

Posted 10 June 2009 - 06:59 AM

The command line stuff to do that is:

ATTRIB %systemdrive%\RECYCLER\* -R -S -H /S /D
RD %systemdrive%\RECYCLER /S /Q

Put it in a batch file and you're good to go.

EDIT: Sometimes RD won't do it's job, so to be safe:


ATTRIB %systemdrive%\RECYCLER\* -R -S -H /S /D
DEL %systemdrive%\RECYCLER\* /F /S /Q
RD %systemdrive%\RECYCLER /S /Q

This post has been edited by Colonel O'Neill: 10 June 2009 - 07:01 AM


#3 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,866
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 10 June 2009 - 05:39 PM

:blink: You mean "RECYCLED", not "RECYCLER", of course!

An easy alternative is NirSoft's free NIRCMD.
At the command prompt or using Start -> Run, just type:
NIRCMD.EXE emptybin <enter>

#4 User is offline   Asp 

  • Member
  • PipPip
  • Group: Members
  • Posts: 106
  • Joined: 17-April 05
  • OS:XP Pro x86
  • Country: Country Flag

Posted 10 June 2009 - 06:41 PM

View Postdencorso, on Jun 11 2009, 07:39 AM, said:

:blink: You mean "RECYCLED", not "RECYCLER", of course!

An easy alternative is NirSoft's free NIRCMD.
At the command prompt or using Start -> Run, just type:
NIRCMD.EXE emptybin <enter>


Thanks, that's simpler, especially as I have a silly number of partitions and so each one has its own recycle folder. Nircmd empties them all.

#5 User is offline   Colonel O'Neill 

  • Member
  • PipPip
  • Group: Members
  • Posts: 256
  • Joined: 22-July 08
  • OS:none specified
  • Country: Country Flag

Posted 10 June 2009 - 09:33 PM

View Postdencorso, on Jun 10 2009, 04:39 PM, said:

:blink: You mean "RECYCLED", not "RECYCLER", of course!

An easy alternative is NirSoft's free NIRCMD.
At the command prompt or using Start -> Run, just type:
NIRCMD.EXE emptybin <enter>


It's RECYCLER on my computer :blink: .
It might be because it's Windows 2000, because I have seen RECYCLED sometimes.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy