@ECHO OFF
GOTO BEGIN

REM **************************************************************************
REM dESiRE FILEVIEW generator....
REM
REM  usage ARCVIEW.BAT <ARCHIVENAME> <ARCTYPE> <NODEDIR>
REM
REM  U can use your own UNZIPPER/UNARJER etc.
REM  dESiRE will show the generated FILEVIEW.TXT to the user.
REM  If U like, U can add an extra editor, to reformat the
REM  FILEVIEW.TXT, to let it fit your needs.
REM
REM **************************************************************************

:BEGIN
If %2==ZIP GOTO ZIP
If %2==ARJ GOTO ARJ
If %2==LZH GOTO LZH
If %2==DMS GOTO DMS
If %2==LHA GOTO LHA
If %2==ZOO GOTO ZOO
If %2==PAK GOTO PAK
If %2==XXX GOTO XXX
GOTO END

:ZIP
PKUNZIP.EXE -V %1 > %3\ARCVIEW\FILEVIEW.TXT
GOTO END
:ARJ
ARJ.EXE L %1 >%3\ARCVIEW\FILEVIEW.TXT
GOTO END
:LZH
LHA L %1 >%3\ARCVIEW\FILEVIEW.TXT
GOTO END
:LHA
LHA L %1 >%3\ARCVIEW\FILEVIEW.TXT
GOTO END
:DMS
ECHO PUT SOME NICE SHIT HERE
GOTO END
:ZOO
GOTO END
:PAK
GOTO END
:XXX
GOTO END
:END
