home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1995 November
/
PCWK1195.iso
/
inne
/
podstawy
/
dos
/
4dos
/
4uzytki
/
arconv01.exe
/
DA2.DAT
< prev
next >
Wrap
Text File
|
1993-06-28
|
2KB
|
110 lines
set ARCINDEX=1
set DEFAULT=arj
:: This is the default archiver used, in case da can't resolve the file
:: extension as one of it's list. (Like, with wildcards, or no extension).
:: This loop finds an index to the first argument that is doesn't start
:: with '-' or '/', which (hopefully) is the archive file name.
:findindex
if "%@SUBSTR[%[%ARCINDEX], 0, 1]" != "-" .and. "%@SUBSTR[%[%ARCINDEX], 0, 1]" != "/" goto selectarc
set ARCINDEX=%@EVAL[%ARCINDEX + 1]
goto findindex
:selectarc
if "%@EXT[%[%ARCINDEX]]" == "arj" goto arj
if "%@EXT[%[%ARCINDEX]]" == "zip" goto zip
if "%@EXT[%[%ARCINDEX]]" == "lzh" goto lharc
if "%@EXT[%[%ARCINDEX]]" == "zoo" goto zoo
if "%@EXT[%[%ARCINDEX]]" == "arc" goto arc
if "%@EXT[%[%ARCINDEX]]" == "hpk" goto hpack
if "%@EXT[%[%ARCINDEX]]" == "sqz" goto squeeze
if "%@EXT[%[%ARCINDEX]]" == "ash" goto ash
if "%@EXT[%[%ARCINDEX]]" == "ha" goto ha
if "%@EXT[%[%ARCINDEX]]" == "hap" goto hap
if "%@EXT[%[%ARCINDEX]]" == "z" goto gzip
if "%@EXT[%[%ARCINDEX]]" == "gz" goto gzip
if "%@EXT[%[%ARCINDEX]]" == "hyp" goto hyper
if "%@EXT[%[%ARCINDEX]]" == "wau" goto wau
if "%@EXT[%[%ARCINDEX]]" == "exe" goto execomp
goto %DEFAULT
:arj
%BASEDIR\arj -jyc x %&
goto finish
:zip
%BASEDIR\pkunzip -d %&
goto finish
:lharc
%BASEDIR\lharc x -x %&
goto finish
:zoo
%BASEDIR\booz x %&
goto finish
:arc
%BASEDIR\pkunpak %&
goto finish
:hpack
%BASEDIR\hpack x -rda %&
goto finish
:squeeze
%BASEDIR\sqz x %&
goto finish
:ash
%BASEDIR\dash 3 %&
goto finish
:ha
%BASEDIR\ha x %&
goto finish
:hap
iff "%2" == "" then
%BASEDIR\pah3 e %& *.*
else
%BASEDIR\pah3 e %&
endiff
goto finish
:gzip
%BASEDIR\gzip -d %&
goto finish
:hyper
%BASEDIR\hyper -x %&
goto finish
:wau
%BASEDIR\wau @X %&
goto finish
:execomp
%BASEDIR\pklite -x %&
goto finish
:syntax
echos syntax: %0
color cyan on black
echos [arc-options]
color green on black
echos arc-file
color cyan on black
echo [arc-options]
color white on black
echos Where
color cyan on black
echos arc-options
color white on black
echo are specific for each archiver.
:finish
endlocal
quit