Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


Asp

Command line to empty Recycle bin?

5 posts in this topic

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
0

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
0

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>

0

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.

0

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.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.