Hardware Reference
In-Depth Information
Command
Function
Examples:
CHKDSK A:
Checks the disk placed in the A: drive and displays a status report
on the screen.
CHKDSK C: \ DEV \ *.ASM/F/V
checks the specified disk and directory, examining all files with an
ASM extension, reporting errors and attempting to correct them.
If you make use of the /F switch, CHKDSK will ask you to
confirm that you actually wish to correct the errors. If you do go
ahead CHKDSK will usually change the disk's file allocation table
(FAT). In some cases this may result in loss of data!
COMP The COMP command may be used to compare two files on a line
by line or character by character basis. The following options are
available:
/A use ... to indicate differences
/B perform comparison on a character basis
/C do not report character differences
/L perform line comparison for program files
/N add line numbers
/T leave tab characters
/W ignore white space at beginning and end of lines
Example:
COMP /B PROC1.ASM PROC2.ASM
carries out a comparison of the files PROC1.ASM and
PROC2.ASM on a character by character basis.
DISKCOMP The DISKCOMP command provides a means of comparing two
(floppy) disks. DISKCOMP accepts drive names as parameters and
the necessary prompts are generated when a single-drive disk
comparison is made.
Example:
DISKCOMP A: B:
compares the disk in drive A: with that placed in drive B:.
The EXE2BIN utility converts, where possible, an EXE program
file to a COM program file (which loads faster and makes less
demands on memory space).
Example:
EXE2BIN PROCESS
will search for the program PROCESS.EXE and generate a
program PROCESS.COM.
EXE2BIN will not operate on EXE files that require more than
64 KB of memory (including space for the stack and data storage)
and/or those that make reference to other memory segments ( CS,
DS, ES, and SS must all remain the same during program
execution).
EXE2BIN
( continued )
Search WWH ::




Custom Search