home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
batch
/
library
/
batutl2
/
cr.doc
< prev
next >
Wrap
Text File
|
1985-02-24
|
1KB
|
31 lines
CR.COM - pushes <return> into keyboard buffer via faked <ret> sequence
Useful for putting default responses to programs run in .BAT file
processing. This version will work on any version of DOS (1.1 and 2.0)
as it pokes the fake <ret> code into the ROM BIOS keyboard buffer area.
Idea from program CTRLPRTS.COM by Daniel M. O'Brien - 12 August 1983
Changes by Michael L. McLellan - 3 February 1985
Example: to load the dos 2.0 print spooler print.com in a .BAT file
without operator intervention:
" .BAT file up to cr.com"
cr 'put <ret> in keyboard input buffer
print /p 'Load print spooler with default device of [PRN:]
"Rest of .BAT file"
NOTE 1: !!!!!!
One problem, however, is that any keystrokes stored in the keyboard
buffer are discarded.
NOTE 2: Any other key can be put in the buffer along with a CR by the
following: replace the 13 with 256*key+13 where key is the
ASCII value of the key wanted( 0 <= key <= 255 ). The extended
ASCII key values can be put in the buffer, but without a CR as in
this program.
NOTE 3: This is assembled and linked with the Microsoft Macro Assembler
and linker and changed to a .COM file by exe2bin.