PC Review Forums Newsgroups Windows XP Windows XP Security Script/Batch to empty recycling bin

Reply

Script/Batch to empty recycling bin

 
Thread Tools Rate Thread
Old 10-10-2003, 02:37 PM   #1
DJ
Guest
 
Posts: n/a
Default Script/Batch to empty recycling bin


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.
  Reply With Quote
Old 10-10-2003, 05:01 PM   #2
=?Utf-8?B?S2V2aW4=?=
Guest
 
Posts: n/a
Default RE: Script/Batch to empty recycling bin

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.

  Reply With Quote
Old 10-10-2003, 06:31 PM   #3
=?Utf-8?B?Y3dy?=
Guest
 
Posts: n/a
Default RE: Script/Batch to empty recycling bin

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.
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off