home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Share Gallery 1
/
share_gal_1.zip
/
share_gal_1
/
UT
/
UT214.ZIP
/
SEBFU40.LZH
/
MATH.DOC
< prev
next >
Wrap
Text File
|
1991-09-17
|
3KB
|
106 lines
M A T H Ver. 4.0
(C)1989,1990,1991 Scanlon Enterprises
MATH is a small utility to perform either addition or subtraction
on an environment variable. This utility will roll over values
larger than 65535, IE... if 30 is added to 65530 the result is 5,
and an overflow errorlevel will be generated. MATH will also roll
over numbers which would result in negative numbers, IE.. if 30
is subtracted from 20 the result is 65520, and an overlfow
errorlevel will be generated. This utility can be used to aid in
developing loop counters for batch files. IE... create an
environment variable set to 10, and subtract one for each pass of
the section of code, for 10 loops.
Syntax : MATH /-n /+n /Vvar
Where : '/-n' subtracts 'n' from an environment variable
'/+n' adds 'n' from an environment variable
'/Vvar' tells MATH to use variable 'var'
Defaults: 'var' is set to ADD as a default
ERRORLEVELS: 255 (0FF) = Program problem (call Author)
254 (0FE) = Invalid option
253 (0FD) = Positive overflow
252 (0FC) = Negative overflow
EXAMPLE:
ECHO OFF
CLS
SET ADD=10
:LOOP1
{Do several things}
MATH /-1 {subtract 1 from var}
IF NOT ADD==0 GOTO LOOP1 {Do loop 10 times}
For additional usage and information on using these utilities see
the file SEBFU.DOC or BATUT.DOC.
Page 1 of 2
M A T H Ver. 4.0
(C)1989,1990,1991 Scanlon Enterprises
O R D E R F O R M
MATH registration ..................................... $1.00
What you get :
Unlimited usage of MATH, and phone or write in support. You
will also be placed on our mailing list for future updates and
new products.
We are offering this utility seperate from SEBFU as a favor to
users who do NOT wish to use many of the SEBFU utilities.
This utility is automatically registered to you when you register
SEBFU as a product (see REG.DOC). Registering SEBFU as a product
is a better bargin, as each utility will cost less than $ .25
each.
Vendors:
You may distribute MATH seperately, provided this document is
distributed as well. Any reasonable fee may be charged.
Send your order to : SCANLON ENTERPRISES
38354 17TH ST E.
PALMDALE, CA 93550