home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD1.bin
/
new
/
util
/
dir
/
browserii
/
s
/
extract
< prev
next >
Wrap
AmigaDOS Script File
|
1994-09-22
|
741b
|
45 lines
.key File/A,Pattern/K
.bra «
.ket »
.def Pattern "#?"
UnSet FileType
For "«File»" FTV=FileType D=1
IF "$FileType" EQ "LHArc"
Lha -x -m e "«File»"
Set Error $RC
Else
IF "$FileType" EQ "Tar"
gnutar -xf "«File»"
Set Error $RC
Else
IF "$FileType" EQ "Tar.Z"
echo Unzip...
gzip -dc "«File»" >tmp_tar_file_$process.tar
IF $RC EQ 0
gnutar -xf tmp_tar_file_$process.tar
EndIF
Set Error $RC
delete >NIL: tmp_tar_file_$process.tar
Else
IF "$FileType" EQ "Zoo"
Zoo x// "«File»"
Set Error $RC
Else
Echo "Unknown archive format '$FileType'"
Echo >SPEAK: "Extract Failed;"
Ask "Press RETURN..."
Quit
EndIF
EndIF
EndIF
EndIF
IF $Error GT 0
Echo "Error extracting «File»."
Echo >SPEAK: "Extract Failed;"
Ask "Press RETURN..."
EndIF