Computing.Net > Forums > Disk Operating System > Command to empty recycle bin on ...

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Command to empty recycle bin on ...

Reply to Message Icon

Name: Callahan
Date: December 4, 2003 at 20:05:40 Pacific
OS: XP
CPU/Ram: 512
Comment:

Hello,

If possible, I would like to know if there is a command/dos line that could be added to the logout field of each user on a network in order that the recycle bin gets emptied each time they logout? Perhaps a dos command that could execute a batch file?? I have very limited knowledge in this area. I realize there are 3rd party applications that may be able to accomplish this, however the network in question is very large and it is not feasible to install an app. on each and every computer. Any help would be very much apprecited.

Thanks,

Callahan



Sponsored Link
Ads by Google

Response Number 1
Name: CyberRax
Date: December 5, 2003 at 00:17:18 Pacific
Reply:

del C:\RECYCLED\?*.*

DEL is an internal command of CMD.exe so it might be neccessary to load it first (ie the line might be something like this: CMD.exe /C del C:\RECYCLED\?*.*)

Also, command interpreters usually ask for confirmation in case all files are to be deleted (which is exactly what is done by the "*.*" part). That is why I included the question mark in front of the stars. It *does* fool COMMAND.COM from Win98SE, but I'm not sure that newer versions are also that stupid. It does fail by 4DOS (but there are other methods to skip the questioning under that interpreter).


0

Response Number 2
Name: Callahan
Date: December 5, 2003 at 04:34:29 Pacific
Reply:

Thanks for the reply CyberRax. Based on the info you provided, is there a way to add this to a batch file for instance that would execute each and everytime someone logged off from a workstation?


0

Response Number 3
Name: r00t
Date: December 28, 2005 at 10:24:59 Pacific
Reply:

Hey, just a couple corrections... 1. It's c:\Recycler NOT C:\Recycled 2. Go to Start --> Accessories --> Task Scheduler to run the batch file at every startup or specified time(s).

~r00t


~With the lights out, it's less dangerous...


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


counting in a batch file Boot to windows form dos



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Command to empty recycle bin on ...

AutoExec.BAT - TEMP to REcycle BIN www.computing.net/answers/dos/autoexecbat-temp-to-recycle-bin/14396.html

Recycle bin www.computing.net/answers/dos/recycle-bin/18.html

Looking for DOS Command to search a file on C drive www.computing.net/answers/dos/looking-for-dos-command-to-search-a-file-on-c-drive/5109.html