home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
UTIL_ARC
/
QAZ_230.ZIP
/
QAZ-DEMO.EXE
/
QVIEW.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-01-16
|
645b
|
31 lines
@echo off
rem QVIEW.BAT - Reads a text file. If the file happens to be compressed
rem by GZIP or Unix Compress, QVIEW will pipe the file to stdout (through
rem MORE). The result is that you can keep your frequently used text files
rem compressed and yet still be able to read them using one command!
qaz %1 /r /vinq > nul
if errorlevel 29 goto err
if errorlevel 28 goto gzv
if errorlevel 22 goto err
if errorlevel 21 goto gzv
if errorlevel 17 goto err
if errorlevel 16 goto txv
goto err
:txv
more < %1
goto done
:gzv
gzip -dc %1 |more
goto done
:err
echo Error: %1 is neither ASCII Text nor GZIP'd!
:done