-
Agora Resource, Inc.
2
-
MS-DOS User's Guide
3
-
• What Is MS-DOS?
9
-
What Is MS-DOS?
12
-
What Is Covered in This Guide?
13
-
How to Enter Keystrokes
14
-
What Is Included with This Guide?
15
-
Before You Start
17
-
Before You Start MS-DOS
19
-
Before You Star t MS-DOS
23
-
Before You S
37
-
3 Starting MS-DOS
43
-
When you load or start MS-DOS, the MS-DOS internal
46
-
To insert the diskette properly:
47
-
If Your Computer Is OFF
48
-
If Your Computer Is ON
49
-
When MS-DOS Is Ready: The Prompt
50
-
Entering an MS-DOS command is easy. Here are some
52
-
If You Make a Mistake
53
-
Stopping the Screen to Read It
54
-
Printing What Is on the Screen
55
-
The Default Drive
56
-
When you press RETURN after this command, the new
57
-
Using a Fixed Disk Drive
58
-
How many people will be using this computer? They
59
-
Using MS-DOS Only
60
-
Press the ESC key.
61
-
Partitioning Your Fixed Disk
63
-
The FDISK command allows you to:
64
-
Creating the MS-DOS Partition
65
-
7 Respond to the prompt
68
-
Changing the Active Partition
69
-
Deleting the MS-DOS Partition
70
-
Displaying the Partition Map
71
-
Organizing Your Fixed Disk
72
-
When you issue the MS-DOS DIR command, a complete
73
-
A Sample Multi-Level Directory
74
-
There are four subdirectories.
75
-
to get into his own directory.
76
-
Then he typed:
77
-
Whenever Sue wanted to get into the files she was
78
-
• MS-DOS Commands for Common
79
-
Using MS-DOS Commands
81
-
. . ..-/
118
-
Items in braces { } indicate that you must make a
122
-
See the SORT command for an example of piping the
123
-
If you enter
124
-
Restores files saved with
127
-
ANSI.SYS Escape sequences are series of charac-
128
-
The ASSIGN command tells MS-DOS to direct
129
-
The BACKUP command makes backup copies of
130
-
The BACKUP command sets exit codes that can
131
-
Add the files to be backed up to those
132
-
The BREAK command is an MS-DOS command
133
-
The CHDIR command changes the current direc-
134
-
There is a simpler notation you can use with this
135
-
The CHKDSK command scans the directory of a
136
-
The following options may be used with the
137
-
Display messages on the screen while
138
-
Change and display file and/or directory
139
-
V Volume ID -
140
-
displays attributes for the current directory on
141
-
The CLS command clears the display screen.
142
-
The COMP command compares the contents of a
143
-
If ten data mismatches are found, the COMP com-
145
-
CONFIG.SYS is a special file that is processed
146
-
The COPY command copies one or more files to
147
-
MS-DOS displays the error message:
148
-
is being correctly recorded.
149
-
To CONCATENATE files:
150
-
You can use wild card characters for more compli-
151
-
would result in an undetected error if ALL.REF
152
-
The CTTY command lets you change the device
153
-
The DATE command is used to enter or change
154
-
A DATE entry must be entered using numerals
155
-
DELete is the same as ERASE. This command
156
-
The DEBUG utility is an executable object pro-
157
-
The DIR command displays all of the files in a
158
-
DIR command. See the chart below.
159
-
Compares the contents of the diskette in the first
160
-
DISKCOMP compares all tracks on a track-for-
161
-
The DISKCOPY command copies all of the files
162
-
1. If you omit both options, a single-drive copy
163
-
copies all files from the disk in drive A: to the
164
-
The EXE2BIN command converts .EXE (executa-
165
-
The FDISK command lets you set up a fixed disk
166
-
The File Compare utility compares the contents
167
-
The byte-by-byte comparison displays the bytes
168
-
If one of the files contains less data than
169
-
Assume these two ASCII files are on disk:
170
-
NOTE: ALPHA fi
171
-
FC (File Compare)
172
-
The FIND command searches for a specified
173
-
causes FIND to display all lines not con-
174
-
FORMAT prepares diskettes or a fixed disk to
175
-
causes FORMAT to prompt for a volume
176
-
The GRAPHICS command lets you print any
177
-
The MKDIR command creates a new directory on
178
-
The MODE command lets you define some of the
179
-
Setting Communication Protocols
180
-
Data bits are an optional entry. If no entry is
181
-
This form of the MODE command sets the built-
182
-
BW40 If you have a monochrome and a color
183
-
Setting the Printer Characteristics and Selecting
184
-
if you have a special printer attached to your
185
-
The MORE command limits the amount of infor-
186
-
You use the MORE command to view a long file
187
-
LINK is an executable program that combines
188
-
The PATH command sets a search path for all
189
-
MS-DOS will search more than one pathname if
190
-
The PRINT command lets you print a text file on
191
-
PRINT with no options displays the con-
192
-
The PROMPT command lets you assign the char-
193
-
To Get This Prompt:
194
-
ANSI Escape sequences used by programmers
195
-
The RECOVER command lets you recover a file
196
-
To recover a diskette or fixed disk, enter
197
-
The RENAME command lets you change a file
198
-
For example, this command changes the names of
199
-
The RESTORE command restores to a fixed disk
200
-
Restore subdirectories also.
201
-
C: \ /S
202
-
The RESTORE command will set the exit code
203
-
The RMDIR command removes a subdirectory
204
-
The SET command is used to assign a value to an
205
-
The SHIP command positions the heads on the
206
-
Lists filenames and file sizes of specified files.
207
-
To list all files with their sizes, type:
208
-
The SORT command is used to sort the contents
209
-
SORT starts with column n where n is
210
-
The SYS command copies the MS-DOS System
211
-
Be careful. Diskettes that contain an earlier ver-
212
-
The TIME command lets you display and set the
213
-
The value for TIME is entered using numerals
214
-
Displays directories and files and optionally
215
-
ID and IQ work together. A ID after the filename
216
-
The examples will use the following directory
217
-
entered with no parameters from the ROOT direc-
218
-
The TYPE command displays the contents of a
220
-
The VER command displays the version of MS-
221
-
The VERIFY command is an option that deter-
222
-
The VOL command displays the label, if any, of
223
-
• Batch Processing Commands
225
-
Batch Processing Commands
227
-
The batch command ECHO lets you choose
233
-
The FOR command is used to expand the power of
234
-
expression involving either * or ? , or both, then
235
-
You cannot nest FOR commands in MS-DOS like
236
-
The GOTO command is a batch file-only com-
237
-
A> REM This is a loop
238
-
The IF command allows conditional processing of
239
-
= =
240
-
The PAUSE command lets you stop the batch pro-
241
-
is optional and should be entered on
242
-
The REM command lets you see any text that is
243
-
The SHIFT command lets your batch file access
244
-
The %0 parameter is always the name of the cur-
245
-
EDLIN-The Line Editor
247
-
. __ ___.-
250
-
The drive designation is the drive where the
254
-
Allocation error, size adjusted (CHKDSK)
255
-
Cannot CHDIR to root
256
-
Disk error (device error)
257
-
Duplicate file name or file not found (RENAME)
258
-
Filename is cross linked on cluster (CHKDSK)
259
-
FIND: Invalid number of parameters (FIND)
260
-
Fixups needed-base segment (hex): (EXE2BIN)
261
-
Invalid current directory
262
-
Invalid parameter (commands)
263
-
List output is not assigned
264
-
No paper error (device error)
265
-
Not ready error (device error)
266
-
Probable non-DOS disk
267
-
Seek error (device error)
268
-
X lost cluster found in y chains
269
-
\. -- __ )
270
-
The Line Editor
271
-
How To Start EDLIN
279
-
Copies template to command line.
285
-
Ends the editing session.
305
-
• LINK File Usage
333
-
LINK is an executable program on your MS-DOS Sup-
335
-
LINK File Usage
336
-
The format for LINK filenames is the same as that
337
-
LINK uses available memory for the link session.
338
-
You may want to change diskettes during the link
339
-
Segments, Groups, and Classes
340
-
A class is a collection ofrelated segments. Bynam-
341
-
To ensure that classes are loaded in the order you
342
-
Just as classes allow you to combine segments in
343
-
LINK is invoked in one of three ways. The first
344
-
Object Modules( .OBJ):
345
-
• If you enter a filename without specifying the
346
-
Object Modules (.OBJ):
347
-
You can have the listing printed by specifying a
348
-
The seven LINK switches control various
349
-
/DSALLOCATE tells LINK to load all data
350
-
/LINENUMBERS tells LINK to include in
351
-
When LINK encounters /PAUSE, it displays the
352
-
!NO is short for NODEFAULTLIBRARY-
353
-
Command Line Entry
354
-
LINK FUN+ TE:X:T +TABLE+ CARE,
355
-
To invQke the linker using a response file, type
356
-
Sample LINK Session
357
-
Once LINK locates all libraries, the linker map
358
-
Because the /MAP switch was used, LINK
359
-
LINK Error Messages
360
-
Error: fixup offset exceeds field width
361
-
Segment size exceeds 64K
362
-
Unresolved externals:
363
-
• How to Invoke DEBUG
365
-
How to Invoke DEBUG
368
-
On entering the DEBUG environment DEBUG
369
-
When you invoke DEBUG, it sets up a program
370
-
This section describes the DEBUG commands in
371
-
The following DEBUG command parameters
372
-
Assembles 8086 mnemonics directly into memory.
374
-
All numeric values are hexadecimal and must be
375
-
The Assemble command will automatically assem-
376
-
Two pseudo-instructions are available with the
377
-
1 Enter A200.
378
-
Compares the contents of two areas of memory.
379
-
1 Enter CIOO, IFF,300 or
380
-
Displays an area of memory.
381
-
Replaces the contents of memory locations at the
383
-
2 Advance to the next byte by pressing < SPACE> .
384
-
5 Enter .
385
-
Fills an area of memory with specified byte
386
-
Executes the program currently in memory,
387
-
If you enter more than ten breakpoints, DEBUG
388
-
2 The program currently in memory is executed
389
-
Calculates and displays the sum and the dif
390
-
Inputs and displays (in hexadecimal) one byte
391
-
Loads a file or absolute disk blocks into memory.
392
-
If all parameters are specified, then DEBUG loads
393
-
Moves the contents of a specified range of memory
395
-
Provides filenames for the Load and Write com-
396
-
In the second case, the file is already in memory
397
-
2 Enter Nb:newfile.com
398
-
Sends a specified byte to an output port.
399
-
Terminates the DEBUG program.
400
-
Displays the contents of the registers and flag
401
-
press < CR> to terminate the Register com-
402
-
1 Enter R.
403
-
Searches a specified range for a list of bytes.
404
-
Executes one or more instructions and displays
405
-
Disassembles strings of bytes in memory and dis-
406
-
1 Enter U058D:204L8 .
407
-
Writes the file being debugged to disk.
408
-
If you enter the WRITE command without param-
409
-
When the WRITE command writes a file to disk,
410
-
1 Enter W .
411
-
DEBUG ERROR MESSAGES
412
-
• Config.Sys Commands
413
-
CONFIG.SYS is a special file that MS-DOS uses to
415
-
The special file CONFIG.SYS is processed auto-
416
-
BREAK OFF resets the default so that MS-DOS
417
-
EXE2BIN < input filename> < output file
421
-
Two kinds of conversions are possible, depending
422
-
Amount read less than size in header
423
-
Fixups needed -
424
-
An ANSI Escape Sequence is a series of characters,
427
-
Installing the ANSI.SYS Device Driver
428
-
Cursor Position (CP)
429
-
Cursor Forward (CF)
430
-
Device Status Report (DSR)
431
-
Erase in Display (ED)
432
-
Set Graphics Rendition (SGR)
433
-
Set Mode (SM)
434
-
Reset Mode (RM)
435
-
ESC(#;#; ... #p
436
-
·, ____ .
438
-
RA MDI SK
440
-
BREAK Command 5-13, E-2
441
-
batch processing 6-1
442
-
DATE Command 5-34
443
-
ENTER Command, DEBUG D-17
444
-
notch, write-enable 2-6
445
-
COMP 4-24, 5-23
446
-
supplemental program diskette 1-5
447
-
,._ ___ .
448
-
', - .
450
-
LIMITED USE SOFTWARE LICENSE AGREEMENT
453
-
ATs.T SOFTWARE SERVICE INFORMATION
455