RecycleBin(
     [string:mode],
     [string:drive]
)
result

Arguments

mode

Optional. Mode flags.

drive

Optional. Specific drive letter to query.

Return value

Result depends on the mode.

Description

With no arguments, returns true if the recycle bin is non-empty, or false if empty.

If mode is set to "s", returns the size of the recycle bin in bytes.
If mode is set to "c", returns the count of items in the recycle bin.

If drive is specified, only information for that particular drive is returned.

Example:

Output("Recycle bin on drive C contains " + RecycleBin("c","c") + " items.");
--> Recycle bin on drive C contains 198 items.