home *** CD-ROM | disk | FTP | other *** search
- /*
- $VER: Delete.dopus5 1.0 (8.9.98)
- When you hit Delete, will copy of selected entries to the Trashcan before
- deleting them.
- */
- options results
- parse arg port func srce dest args .
- address value port
-
- if func = 'init' then do
- dopus command "DeleteTC" program "Delete" desc "'Move selected to Trashcan'"
- dopus command "EmptyTC" program "Delete" desc "'Empty the trash'"
- exit
- end
-
- if func = 'DeleteTC' then command source srce original move 'TO SYS:Trashcan'
- if func = 'EmptyTC' then address command 'Delete SYS:Trashcan/#? QUIET FORCE ALL'
- exit
-