Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Command line to empty Recycle bin?

- - - - -

  • Please log in to reply
4 replies to this topic

#1
Asp

Asp

    Member

  • Member
  • PipPip
  • 148 posts
  • Joined 17-April 05
  • OS:XP Pro x86
  • Country: Country Flag
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?

Edited by Asp, 10 June 2009 - 06:44 AM.



How to remove advertisement from MSFN

#2
Colonel O'Neill

Colonel O'Neill

    Member

  • Member
  • PipPip
  • 256 posts
  • Joined 22-July 08
  • OS:none specified
  • Country: Country Flag
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

Edited by Colonel O'Neill, 10 June 2009 - 07:01 AM.

T400: 7x86
X100e: 7x86, 2008R2 (in progress), 2000 (in progress).

#3
dencorso

dencorso

    Iuvat plus qui nihil obstat

  • Supervisor
  • 6,098 posts
  • Joined 07-April 07
  • OS:98SE
  • Country: Country Flag

Donator

: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
Asp

Asp

    Member

  • Member
  • PipPip
  • 148 posts
  • Joined 17-April 05
  • OS:XP Pro x86
  • Country: Country Flag

: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
Colonel O'Neill

Colonel O'Neill

    Member

  • Member
  • PipPip
  • 256 posts
  • Joined 22-July 08
  • OS:none specified
  • Country: Country Flag

: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.
T400: 7x86
X100e: 7x86, 2008R2 (in progress), 2000 (in progress).




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users