home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
w
/
wrb100b.zip
/
ZEXAMINE.BAT
< prev
Wrap
DOS Batch File
|
1993-01-07
|
3KB
|
63 lines
@ECHO OFF
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO.
ECHO ┌────────────────┬────────────────────────────────┐
ECHO │ ZEXAMINE.BAT │ Archive Viewing Support File │
ECHO ├──────────────┬─┴────────────────────────────────┤
ECHO │ For WR-BBS │ Designed for ZIP archive files │
ECHO └──────────────┴──────────────────────────────────┘
ECHO.
ECHO.
REM
REM This batch file is designed for use in conjunction with the WR-BBS
REM (E)xamine archive feature found in the files menu. It has been
REM designed with the PkWare compression utilities in mind, but could
REM be edited to suit other formats, such as .ARC, .LZH, .PAK, etc.
REM
REM One parameter is passed to this batch file by WR-BBS ... the fully
REM pathed filename of the archive file to be examined. It is then up
REM to this batch file to do the following:
REM
REM 1. Execute the appropriate command to display the contents of
REM the specified archive file. (With .ZIP files, that command
REM is PKUNZIP -v plus the filename).
REM
REM 2. Redirect the output of that command into a text file named
REM ZEXAMINE.TXT. (With most archive utilities, this is done by
REM using a redirect symbol, as in PKUNZIP -v %1 (greater than)
REM ZEXAMINE.TXT).
REM
REM 3. Terminate. WR-BBS will then regain control, and display the
REM contents of ZEXAMINE.TXT.
REM
REM -------------------------------------------------------------------------
ECHO ████████████████████████████████████████████████████████████████████████
ECHO PARAMETER PASSED TO %0 = %1
ECHO ████████████████████████████████████████████████████████████████████████
REM
REM
REM First, we will change to the WR-BBS working directory. This can
REM be done by referring to the DOS environment variable "WR-BBS" with
REM a CHDIR or CD command. If you have installed WR-BBS on a system
REM with more than one hard drive, you may want to insert an additional
REM command to make the WR-BBS home drive current.
REM
CHDIR %WR-BBS%
REM
REM Now, we issue the archive "view" command along with redirection to
REM the output file. Note that the archive view utility must be either
REM in the WR-BBS home directory, or in a directory specified in the
REM DOS PATH.
REM
PKUNZIP -v %1 > %WR-BBS%\ZEXAMINE.TXT
REM
REM Done. Now, the batch file terminates, and WR-BBS regains control.
REM It will then display the output that was sent to ZEXAMINE.TXT