home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1995 November
/
PCWK1195.iso
/
inne
/
podstawy
/
dos
/
4dos
/
4uzytki
/
ez-btm11.exe
/
RED.BTM
< prev
next >
Wrap
Text File
|
1994-10-20
|
2KB
|
89 lines
:RED.BTM
: See HELP below for details.
: Itamar Even-Zohar, itamarez@plato.tau.ac.il
: December 13, 1993
iff .%@search[ted.com]==. .or. .%@search[fv.com]==. then
echo You must have both Buerg's FV, and TED 3.0 to run this batch
quit
endiff
if .%1==. goto help
setlocal
call settemp.btm
:: (sets temp drive for program)
set arcfn=%1
if %@index[%1,.] lt 0 (echo Must have extension too^goto quit)
if not exist %arcfn (echo %@upper["%1"] not found^goto quit)
::if %@ext[%arcfn]==zip set vw=pkunzip -c
if %@ext[%arcfn]==zip set vw=unzip -p
if %@ext[%arcfn]==arc set vw=pkunpak -c
if %@ext[%arcfn]==lzh set vw=lha p
if %@ext[%arcfn]==arj set vw=arj p
if %@ext[%arcfn]==zoo set vw=zoo -p
set fn=%@unique[%temp]
set sortfn=%@unique[%temp]
shift
alias red `%vw %arcfn %1 |list /s`
fv %arcfn >%fn
keystack 0 f8 f8 f8 f8 f8 f8 ks ctrl-pgdn up up f8 f8 f7 enter^ted %fn
cls
sort <%fn >%sortfn
move /q %sortfn %fn
if .%1==. goto select
goto fn
:select
set cmdline=%@select[%fn,2,59,24,76, %@filename[%arcfn] ]
:cmdline
set cmdline=%@instr[0,12,%cmdline]
:: (this cuts the garbage from the filename)
iff .%cmdline != . then
red %cmdline
if .%1 != . goto quit
goto select
else
goto quit
endiff
:fn
find /i "%1" < %fn | input %%cmdline
goto cmdline
:quit
del /q %fn >&nul
endlocal
quit
:-------------------------
:help
cls
screen 2 0
text
Allows fast reading of text files from ZIP, LZH, ARJ, ARC, and
ZOO archive formats. You may type a few dintinguishing characters
of the desired filename, or allow a pop-up menu (for all names).
Note: You must have Buerg's FV, TED 3.0 (c) and the respective
archivers for this batch to work. (FV and TED 3.0 are downloadable
from Simtel20 mirrors as FVxxx.ZIP in /msdos/arcutil, and
TED3.ZIP in /msdos/editor.)
**Itamar Even-Zohar, itamarez@plato.tau.ac.il, December 13, 1993**
Syntax is
RED [path\]archive_name[.ext] [(a segment from) file_name]
If no filename is specified, you will get a pop-up menu with
all the filenames in the archive. You can point and shoot, then
exit with ESC.
Examples:
RED \docs\docs.zip df4 -- will read DF460.DOC from DOCS.ZIP
RED \docs\docs -- will show a pop-up menu of files
In DOCS.ZIP
endtext
quit