PC Review
Forums
Newsgroups
Windows XP
Windows XP Security
Script/Batch to empty recycling bin
Forums
Newsgroups
Windows XP
Windows XP Security
Script/Batch to empty recycling bin
![]() |
Script/Batch to empty recycling bin |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
All,
Security here is pretty tight. We need a way to empty the recycling bin at the users logoff. Is there a script/batch file that will do this. Or is there another way that someone know to do this. TIA. D.J. |
|
|
|
#2 |
|
Guest
Posts: n/a
|
I know you would run group policy editor. Go to Computer Configuration--Windows Settings--Scripts (Startup/Shutdown). You would then need to implement a new script to empty the recycle bin using Windows Scripting Host.
I hope this has helped. |
|
|
|
#3 |
|
Guest
Posts: n/a
|
A simple batch file in the logoff script with "rmdir /S /q Recycler" for XP or "rmdir /S /q Recycled" for 98 will do the trick. It removes the recycle bin directory which will be recreated when someone deletes something.
|
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

