TIP: Click on subject to list as thread! ANSI
echo: batpower
to: all
from: Richard Webb
date: 2010-01-21 01:44:26
subject: limiting scope of acceptable command line parm

Hello all!


Alright, another one for the batch gurus in here.

FIrst, some background.  My braille embosser uses heavy
fanfold tractor feed paper.  This come in boxes of 1000
sheets each.  Because they must be ordered from elsewhere
and shipped turnaround time is about 3 weeks from the time I send the folks
a bank draft or other financial instrument
until paper arrives on my doorstep.

So, to alert me when I ought to start thinking about
ordering more most batches that I write which will generate
hardcopy braille use the statistics file of the braille
translator program to give me the total number of sheets
I"ve used from a box of paper, in most cases counting the
waste sheet which must be accounted for due to the tractor
feed mechanism.

But, every now and then I do braille output from dos itself, and I have a
nice little batch which lets me enter the
number of pages used when capturing a screen or other dos
output.

My batches use the braille translator's statistics file, an
all pages master file, and of course HOrst's nset, and in
some cases listmod along with TImo from FInland's command
line calculator to derive a new value of allpages.txt
whenever anything happens that generates hardcopy.
We also want to storee the statistics file for the braille
translator in a master file which gets recreated whenever a
new box of paper arrives.

So, now for the question.  The batch I use to increment my
page counts of course accepts a command line parameter which is the number
of pages used but where the braille translator was not used.

Is there any way that you gurus know of to limit the scope
of acceptable parameters such as is provided in dbase?  I.e. the command
line parm given must be numeric or the program
branches to a block of code that generates an appropriate
message then ends?

Just curious.



Regards,
           Richard
--- timEd 1.10.y2k+
* Origin: Radio REscue net operations BBS (1:116/901)
SEEN-BY: 10/1 11/200 331 34/999 120/228 123/500 128/2 187 140/1 222/2 226/0
SEEN-BY: 236/150 249/303 250/306 261/20 38 100 1381 1404 1406 1410 1418
SEEN-BY: 266/1413 280/1027 320/119 393/68 396/45 633/104 260 267 285 640/954
SEEN-BY: 690/682 734 712/0 313 848 800/432 801/161 189 2222/700 2320/100 105
SEEN-BY: 2320/200 5030/1256
@PATH: 116/901 3634/12 123/500 261/38 633/260 712/848 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.