Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Asp

Command line to empty Recycle bin?

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
: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.

Share this post


Link to post
Share on other sites
: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 post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...