Why should the KiXtart documentation contain anything about the 'Recycle bin'? The 'Recycle Bin' is just a redirection from the RECYCLER subfolder that exists on the root directory of local drives, e.g. C:\RECYCLER. The RECYCLER subfolder contains numerous subfolder with the user's SID containing the user's deleted files. One can thus enumerate the folders/files via Kixtart and/or WMI/WSH and selectively delete them. However, two file sneed to preserved, namely 'desktop.ini' and the catalog file 'INFO2'.

This would also work but I beleive it will throw a prompt:
Code:

$sh = CreateObject("Shell.Application")
$fi = $sh.NameSpace(&h000a)
if $fi.items.count
$fi.ParentFolder.ParseName('::{645FF040-5081-101B-9F08-00AA002F954E}').InvokeVerb('Empty Recycle &Bin')
end if


See also http://www.microsoft.com/technet/treeview/default.asp?url=/technet/scriptcenter/scrguide/sas_fil_higv.asp

Using a custom DLL requires this DLL to be distributed to all computers and installed under admin privs.


Edited by sealeopard (2004-01-21 11:06 PM)
_________________________
There are two types of vessels, submarines and targets.