home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 13
/
AACD13.ISO
/
CDTools
/
S
/
AAExtract
< prev
next >
Wrap
Text File
|
1999-12-15
|
1KB
|
47 lines
/*
$VER: AAExtract 1.1 (15.12.99)
(c) Neil Bothwick, Wirenet
*/
address command
options results
call addlib('rexxsupport.library',0,-30,0)
call addlib('rexxdossupport.library',0,-30,0)
options failat 21
ExtractPath = 'RAM:'
ExtractPath = AddPart(ExtractPath,'')
CDName = pragma('D')
parse var CDName CDName ':' .
if left(CDName,4) ~= 'AACD' then CDName = 'AACD'
parse arg Archive
Ext = upper(substr(Archive,lastpos('.',Archive) + 1))
select
when pos(Ext,'LHA LZH') > 0 then do
'LhA x "'Archive'" "'ExtractPath'"'
if RC > 0 then 'RequestChoice >NIL: "Amigactive CD" "An error occured*Nwith this archive" "OK"'
else 'rx REXX:AAShowDir' ExtractPath
end
when pos(Ext,'DOC TXT README GUIDE') then 'AACDFile "'Archive'"'
when Ext = 'TGZ' then do
'UnTGZ x "'Archive'" "'ExtractPath'"'
if RC > 0 then 'RequestChoice >NIL: "Amigactive CD" "An error occured*Nwith this archive" "OK"'
else 'rx REXX:AAShowDir' ExtractPath
end
when Ext = 'ZIP' then do
'UnZIP x "'Archive'" "'ExtractPath'"'
if RC > 0 then 'RequestChoice >NIL: "Amigactive CD" "An error occured*Nwith this archive" "OK"'
else 'rx REXX:AAShowDir' ExtractPath
end
/* when Ext = 'DMS' then */
when pos(Ext,'MPG ANIM GIF JPEG JPG PNG') > 0 then 'AACDFile "'Archive'"'
otherwise do
'copy "'Archive'" "'ExtractPath'" clone quiet'
if RC > 0 then 'RequestChoice >NIL: "Amigactive CD" "An error occured*Nwith this archive" "OK"'
else 'rx REXX:AAShowDir' ExtractPath
end
end