/* Usage in a button :Arexx Dopus5:Arexx/CopyToDest.dopus5 */
options results
PARSE ARG portname handle file .
flag=0
IF portname='' THEN portname='DOPUS.1'
ADDRESS VALUE portname
If ~Show("P",'trash-handler') then do
dopus request '"WARNING!!!:"'|| '0a'x ||'" Global Trash is not running!!" OK'
Exit
End
If ~Show("P",'Trash_lister') then do
dopus request '"WARNING!!!:"'|| '0a'x ||'" Trash lister not Open!!" OK'
Exit
End
If ~Show("P",'trash-handler') then do
dopus request '"WARNING!!!:"'|| '0a'x ||'" Global Trash is not running!!" OK'
Exit
End
if ~show('L', 'rexxtricks.library') then do
if ~addlib('rexxtricks.library', 0, -30, 0) then do
dopus request '"rexxtricks.library is not available. Exiting..." OK'
exit
end
end
if open(1,'Env:trash.prefs','R') then do
do i=1 to 6
prefs.i = readln(1)
end
if prefs.4 ~="" then trashpath=prefs.4
Call close(1)
end
else do
dopus request '"This Script is a part of "'|| '0a'x ||'"Global Trashcan By Nils-Erik R. Skilnand"'|| '0a'x ||'"and could only be of use with GDTrash installed!!!" OK|Cancel'