home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1995 November
/
PCWK1195.iso
/
inne
/
podstawy
/
dos
/
4dos
/
4uzytki
/
ez-btm11.exe
/
EX-HLP.BTM
< prev
next >
Wrap
Text File
|
1994-03-27
|
14KB
|
498 lines
:EX-HLP.BTM
: Itamar Even-Zohar
: Further and more detailed explanations on the sub-pgms
: contained in EX.BTM and DES.BTM.
:
:HELP
iff "%1"=="" then
cls
screen 5 0
text
Type HELP (or H), then the desired option (subprogram's name)
for more explanations.
For example: 'H[ELP] xx' will provide more information
about the XX subprogram.
Note: Since this file provides information on both EX.BTM and DES.BTM,
You can use EX and DES interchangeably.
To get the HELP text into a file, type:
EX H option >filename
To get the HELP text into a file, then read it with your editor type:
EX H option >filename ^ keystack "<command>" enter^<editor's name>
To read it with LIST type:
EX H option | list /s
endtext
quit
else
goto SELECT
endiff
:SELECT
goto %1
:XX
cls
screen 4 0
Text
XX makes X.COM (X_V30.ZIP, downloadable from SIMTEL20 <msdos.zip>)
run a program from a compressed ZIP archive whose name is
other than your default file (usually a file called COMLIB.ZIP).
SYNTAX: EX XX alternative_comlib program_name / command
(the ZIP extension may ne ommitted; the "_" sign denotes "one word").
X.COM requires that you set the name of your default archive
by 'SET COMLIB=name' in your AUTOEXEC.BAT. This makes it
possible to set some other archive to work instead of the one
you normally use, then switch back. XX makes such switchings
fast and easy. When you type 'XX archive_name program_name',
the XX subprogram will instruct X.COM to switch to the specified
archive, then run the specified program (or execute a PKZIP command).
When the job is terminated, XX sets back your default COMLIB.
Endtext
Quit
:OP
:SP
:SF
cls
screen 4 0
Text
OP|SP|SF runs Norton's SPEEDISK (c) to fully optimize hard disk C:,
i.e., with the /F option. However, since SPEEDISK does not move hidden
files, it is necessary to UNhide, prior to optimization, all the
DESCRIPT.ION files created by 4DOS. SPEEDISK then can move them as
regular files. When optimization is completed, all of these DESCRIPT.ION
files are hidden again.
In addition, SPEEDISK would not run if there isn't enough memory
for it. This saves the trouble of getting stuck in the beginning
of the process. You can clear memory and re-run.
Note: OP is designed to run either the short name (SD) or the
long name (SPEEDISK) of Norton's SPEEDISK.
If you use a different optimizer, put the command to run it in the
appropriate lines.
Endtext
Quit
:CI
:CI-HIDE
Cls
screen 4 0
Text
SYNTAX: CI-HIDE {-|+} <filename>
'-' = unhiding, '+' = hiding
Globally hides /unhides specified files:
For example:
EX CI-HIDE - DESC*.*
will unhide all DESC*.* files on the whole disk
Endtext
Quit
:UP
Cls
screen 4 0
Text
UP Updates a ZIP specified archive on drive B:.
No need to indicate 'B:', since this is the program's default.
If the specified archive does not exist on drive B:, the program is
aborted (this is done to avoid the risk that an undesired new archive
is created on drive B:.
In addition, in order to prevent the wrong files from
being added to an archive, you are asked whether the current
subdirectory is the right one for updating, allowing you
to specify an alternative, if necessary.
I have added a side-routine which allows quick update of a specific
archive on a specific subdirectory. It is written in a way
easy to customize for other users.
Adding aliases to your aliases file, like 'UP=EX UP' would make it
in addition possible to type 'UP archive_name' without specifiying
The name of the library ("EX").
Endtext
Quit
:UPF
:UF
:F
Cls
screen 4 0
Text
UPF|UF|F freshens a ZIP specified archive on drive B:.
No need to indicate 'B:', since this is the program's default.
If a specified archive does not exist on drive B:, the program
is aborted. In addition, in order to prevent the wrong files from
being added to an archive, you are asked whether the current
subdirectory is the right one for freshening, allowing you
to specify an alternative, if necessary.
Adding aliases to your aliases file, like 'UPF=EX UP' would make it
in addition possible to type 'UPF archive_name' without specifiying
the name of the library ("EX").
Endtext
Quit
:DA
:dap
Cls
screen 4 0
Text
DA puts current date and time in 24 hours format
DAP puts current date and time in 12+12 hours format
Note: DA/DAP contains a procedure for getting the full month's name
(i.e., "FEBRUARY" rather than "FEB"), and a procedure for eliminating
'0' from day's date (i.e., 7-7-92 rather than 7-07-92).
I normally run this batch by pressing ALT-F2, having defined this
key in my ALIASES file with:
@alt-F2=@ex dar
Endtext
Quit
:DESCLIST
:deli
Cls
screen 4 0
Text
DESCLIST | DELI Creates a list of all DESCRIPT.ION files on your
hard disk, putting the results in a file called DESCRIPT.LST, stored on
your ROOT directory.
If you don't have Buerg's LIST (c), DESCLIST will use 4DOS internal
LIST command instead.
If you wish the file to be optionally viewed by some other program,
change the name of the program above ^^^ (and also insert a corresponding
SET command into the batch which loads this program).
NOTE: No need to create this list if all you want is backing up
your decript.ion files without editing the list. Use ZIPALD
for directly zipping all descript.ion files.
The routine for finding all files is Robert Chung's (Chung
@QAL.QAL.BERKELEY.EDU) in his WHICH.BTM (4DOS command interpreter
<4DOS@INDYCMS.BITNET>, 18 Jun 1992).
Endtext
quit
:CA
Cls
screen 4 0
Text
CA calls specified file via Nota Bene, if loaded; else uses LIST.
Put the name of your preferred editor / word processor instead.
If you work in Nota Bene, I have written a small XPL program called
CA.RN. This program makes it possible, in case you work with a NW=1
default value (no automatic new window), to have the file called to
a new window without changing your default. If you don't have this
program, CA will call the file in Nota Bene, but if the screen is
occupied, you will have to switch manually to another window, then
press F10.
Endtext
Quit
:ED
Cls
screen 4 0
text
ED calls specified file via Nota Bene, if loaded; else uses PED.
PED by Bob Foley is downloadable from SIMTEL20 (<msdos.editor>,
under the name PED15.ARC. Put the name of your preferred editor instead.
If you work in Nota Bene, I have written a small XPL program called
CA.RN. This program makes it possible, in case you work with a NW=1
default value (no automatic new window), to have the file called to
a new window without changing your default. if you don't have this
program, CA will call the file in Nota Bene, but if the screen is
occupied, you will have to switch manually to another window, then
press F10.
Endtext
Quit
:SIM
Cls
screen 4 0
Text
SIM Calls SIMIBM.LST, a list of all files stored on SIMTEL20, from
c:\tn\sim, if it exists. Otherwise, it expects to find it on
drive A:. You can type immediately the desired search string:
SIM [search string]
Endtext
Quit
:ZIP-DESC
:zipd
Cls
screen 4 0
Text
ZIP-DESC | ZIPD creates a zip archive on specified drive for all
DESCRIPT.ION files listed in DESCRIPT.LST (created by DESCLIST).
If you fail to indicate the drive, you will be asked by the program
to type it.
The purpose of this batch is to carry an updated version of all file
descriptions to another computer with the same files.
USAGE: EX ZIP-DESC [d[:]]
(meaning: typing drive, or colon are optional)
Endtext
Quit
:ZIPAD
:zip-alld
Cls
screen 4 0
Text
ZIP-ALLD | ZIPAD creates a ZIP archive on specified drive for all
DESCRIPT.ION files on current disk, using PKZIP's ability to handle
hidden files.
No list need be pre-created, unless, of course, you wish to edit such
a list before archiving. In that case, use sub-program DELI, then
Sub-program ZIPD.
The purpose of this batch is to carry an updated version of all file
descriptions to another computer with the same files.
USAGE: DES ZIP-ALLD|ZIPAD [d[:]]
(meaning: typing drive, or colon are optional)
Endtext
Quit
:ZP
Cls
screen 4 0
Text
ZP [switch] creates a ZIP archive from a file with a list of filenames
called UPD.BAT. If you use switch H, the archive's name will
be FROMHOME.ZIP; if you use switch F, the archive's name will
be FRMOFICE.ZIP.
The archives will be created on drive B:, unless you change this in
The batch itself (above the ^^ string).
Endtext
Quit
:ZPX
Cls
screen 4 0
Text
ZPX [switch] extracts the files in an archive created by ZP to the
respective subdirectories on your hard disk. If you use switch H, the
archive will be FROMHOME.ZIP; if you use switch F, the archive will
be FRMOFICE.ZIP.
Endtext
Quit
:gr
:grepfv
Cls
screen 4 0
Text
Uses GREPFV to search a string in archives (ARC, ZIP, LZH),
redirect it to a file, then calls the file to screen using
CA (which calls the file via Buerg's LIST, if it exists, or
via 4DOS internal LIST command, or via Nota Bene, if it is loaded).
Usage:
gr|grepfv "regexp" filepattern[+]
REGULAR EXPRESSIONS:
\ treat next char as literal
. match any single character
* match 0 or more characters
| preceeding expression OR following
& preceeding expression AND following
The optional + on the end of filepattern will cause grepfv to
search subdirectories too
endtext
echo.
echo ==`>` Press any key for more information
pause >&nul
echo.
text
GREPFV by Nigel Salt (c) is a text string searching utility which
searches for regular expressions in text files, archived files,
and executable files. It will automatically unarchive ZIP, PAK,
ZOO, LZH, and ARC files providing that you have a copy of FV.COM
and the necessary archive managers in your path. FV.COM is Vernon
Buerg's addon for LIST. GREPFVn.ZIP (n=version number) is downloadable
from SIMTEL20's mirrors (/msdos/txtutil).
endtext
quit
:ser
:see
:search
Cls
screen 4 0
Text
SER|SEE|SEARCH searches a file / group of files for a string,
using GREP, redirecting the items found to a file called SEARCH.TMP,
then calls this file.
SEARCH.TMP is stored on your temporary drive. If you have not defined
a temporary drive, the program will put the file on your current drive
(C:, etc.)
USAGE
SEE item filename
(wildcards allowed)
GNU GREP is a freeware, Copyright (C) 1989 by Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. It
can be downloaded from SIMTEL20 <msdos.gnuish>grep15.arc.
Endtext
Quit
:dsc
Cls
screen 4 0
Text
DSC displays filenames specified by their filepatterns
with their descriptions on screen.
Use redirection (>) to get results in file.
SYNTAX:
DSC filepattern [>output_file]
Endtext
Quit
:gldsc
Cls
screen 4 0
Text
GLDSC globally collects filenames specified by their filepatterns
with their descriptions from the entire disk and redirects results
to an output file.
Syntax:
GLDSC filepattern
Endtext
Quit
:desc
Cls
screen 4 0
Text
DESC finds all undescribed files and lets you either (1) describe
them one by one, or, with the /L switch, (2) via a batch file
created by it for your handling. When you have edited this file,
running it will add all of the desired descriptions.
Note: Adapt the name of the editor above ^^^^^ in the batch file.
SYNTAX:
DESC [/L|/H]
where
/L = 'make list'
/H = Help & options
Endtext
Quit
:dscf
:dscfp
:dscp
Cls
screen 4 0
Text
DSCP displays filenames specified by their filepatterns
with their pathnames & descriptions on screen.
Use redirection (>) to get results in file.
SYNTAX:
DSCP filepattern [>output_file]
Endtext
Quit
:nocf
:nof
Cls
screen 4 0
Text
Syntax:
NOCF | NOF filename
Runs NOCZ.COM to strip CTRL-Z from specified file. CTRL-Z is
particularly annoying when you append material to a file which
was saved before with a program that puts CTRL-Z at the end of
files. Subsequently, that program will not allow you to see the
contents of the file beyond the first CTRL-Z, and if you save it
again, you lose everything beyong the first CTRL-Z point.
NOCZ.COM by an anonymous writer strips CTRL-Z instantaneously.
NOCZ.COM is downloadable from simtel20 in <msdos.txtutl> as nocz12.arc
Endtext
Quit
:atb
Cls
screen 4 0
Text
ATB makes a list of files with Hidden, System or Read-Only attributes
from the whole default disk.
Syntax: ATB [h|s|r]
(If no attribute specified, ATB will look for hidden files)
Endtext
Quit
:u2d
:crlf
Cls
screen 4 0
Text
U2D Adds CR-LF via UNIX2DOS.COM to file or set of files.
(downloadable from SIMTEL20 <MSDOS.TXTUTL>, file DOS2UNIX.ZIP)
Syntax: EX u2d filename|wildcards [@takefile]
Endtext
Quit
:----Info on the following is embedded in XC-HLP.BTM---
:ALS
:CHKP
:DUP
:SEF
:SRDX
:UMBMEM
:UMB
call xc-hlp %1&
quit
:void
Cls
screen 4 0
Text
Insert text here
Endtext
Quit