home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
misc3
/
check.doc
< prev
next >
Wrap
Text File
|
1987-02-03
|
3KB
|
44 lines
CHECK.COM
syntax: CHECK keyword parameter1 parameter2 ...
purpose: This is an extension of the DOS batch file capabilities. When
run, Check returns an error level number to the batch file to report a
condition.
keywords and parameters information returned
FileSize filespec Length of file in K
FileFound filespec 0 - file found
1 - file not found
FileText filespec `string' 0 - string found
1 - string not found
DiskSpace [d:] number of whole 16k blocks free
on indicated or default drive
Memory number of 16k RAM modules
VideoCard 0 - monochrome display adapter
1 - color graphics adapter
2 - enhanced graphics adapter
Model machine ID byte
8087 0 - 8087 or 80287 installed
1 - 8087 & 80287 not installed
80287 0 - 8087 or 80287 installed
1 - 8087 & 80287 not installed
Time current hour (0-23)
Day current day (1-31)
Month current month (1-12)
VideoMode current video mode (0-16)
Version DOS version (major number) in use
KeyBoard 0 - keyboard buffer empty
1 - entry awaiting processing
Keypress ASCII code of key pressed
Operation: Enter the check command on a line in the batch file. Have the
next line look at the returned error level number to determine the next
operation. Example check memory
if not errorlevel 16 goto short
goto end
:short
echo minimum 256 K required to run
:end
Source: PC Magazine 10 Feb 1987 volume 6 number 3 page 299