#112130 - 2004-01-20 11:05 PM
Recycle bin sample script
|
rvdmast
Fresh Scripter
Registered: 2003-07-01
Posts: 15
|
; Recycle bin sample script uses a COM object to work ; with the recycle bin. ; Requires BinManager.dll to be installed on the system, ; see http://www.cheztabor.com/binmanager/
Dim $bin, $items, $size
$bin = CreateObject("BinManager.RecycleBin") $items = $bin.NumItems $size = $bin.Size
? "RecycleBin contains " $items " items " $size " bytes" ; Permanently delete items recycled more than two days ago. ; Note, the argument is full calendar days, so specifying ; zero would delete all items older than today. $Returnvalue = $bin.DeleteOldItems(2) ; This permanently deletes all recycled items. $Returnvalue = $bin.Empty()
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 1198 anonymous users online.
|
|
|