Dec 172017
Yes and No answers for batch files. | |||
---|---|---|---|
File Name | File Size | Zip Size | Zip Type |
Y-N-TEST.BAT | 177 | 114 | deflated |
Y-N.ASM | 2432 | 868 | deflated |
Y-N.COM | 245 | 117 | deflated |
Y-N.DOC | 1432 | 760 | deflated |
Download File Y-N-NEW.ZIP Here
Contents of the Y-N.DOC file
7/23/86
Y-N.DOC THIS FILE
Y-N.ASM THE ASSEMBLER SOURCE CODE
Y-N.COM THE WORKING COM FILE
Y-N-TEST.BAT FOR TESTING Y-N
The program is patterned after a program written by John Lewis
using C. That program has a .COM file about 3.7k in size. This
program was written in order to duplicate the function of the
C version while reducing the size of the .COM file. The intent
was to produce a .COM file that loaded and executed faster. The
goal has been met. As an added benefit the program can easily
be modified to conveniently handle other responses if desired.
R. Lehr
901 Rye Beach Rd.
Huron, Ohio 44839
----------------------------------------------------------------
For anyone who may be in the dark after reading that vague bit
of documentation, Y-N is a program you can run from a batch
file. The format for the command is:
Y-N [prompt string]
where [prompt string] is any yes/no question, such as, "Do you
really want to do this?" Y-N echos the prompt string and pauses
for a Y/N input from the keyboard. It sets ERRORLEVEL to 1 if
the keyboard input is Y and sets ERRORLEVEL to 0 if the keyboard
input is N. You can use the batch file command IF ERRORLEVEL
[number] to branch to two different sets of commands, depending
on the input to Y-N. A sample batch file has been included in
the ARChived file. This user thinks it's rather handy.
Have fun!
rkb,jr. 8/4/86
Y-N.DOC THIS FILE
Y-N.ASM THE ASSEMBLER SOURCE CODE
Y-N.COM THE WORKING COM FILE
Y-N-TEST.BAT FOR TESTING Y-N
The program is patterned after a program written by John Lewis
using C. That program has a .COM file about 3.7k in size. This
program was written in order to duplicate the function of the
C version while reducing the size of the .COM file. The intent
was to produce a .COM file that loaded and executed faster. The
goal has been met. As an added benefit the program can easily
be modified to conveniently handle other responses if desired.
R. Lehr
901 Rye Beach Rd.
Huron, Ohio 44839
----------------------------------------------------------------
For anyone who may be in the dark after reading that vague bit
of documentation, Y-N is a program you can run from a batch
file. The format for the command is:
Y-N [prompt string]
where [prompt string] is any yes/no question, such as, "Do you
really want to do this?" Y-N echos the prompt string and pauses
for a Y/N input from the keyboard. It sets ERRORLEVEL to 1 if
the keyboard input is Y and sets ERRORLEVEL to 0 if the keyboard
input is N. You can use the batch file command IF ERRORLEVEL
[number] to branch to two different sets of commands, depending
on the input to Y-N. A sample batch file has been included in
the ARChived file. This user thinks it's rather handy.
Have fun!
rkb,jr. 8/4/86
December 17, 2017
Add comments