Manual Ms-Dos 3.3
Manual Ms-Dos 3.3
Manual Ms-Dos 3.3
33
Reference
Manual
I
6
o
C Z)
©
m
EPSON AMERICA, INC.
2780 Lomita Boulevard
Torrance, California 90505
Printed in Korea
EPSON®
MS-DOS. 3.3
Reference Manual
Y16299100502
IMPORTANT NOTICE
DISCLAIMER OF WARRANTY
Microsoft Corporation and Seiko Epson Corporation make no warranties or
representations, either express or implied, by or with respect to anything in
this manual, and shall not be liable for any implied warranties of
merchantability or fitness for a particular purpose or for any indirect, snecial
or consequential damages. Some states do not allow the exclusion of
incidental or consequential damages, so this exclusion may not apply to you.
COPYRIGHT NOTICE
All rights reserved. No part of this publication may be reproduced, stored in a
retrieval system, or transmitted, in any form or by any means, mechanical,
photocopying, recording or otherwise, without the prior written permission of
Microsoft Corporation and Seiko Epson Corporation. No patent liability is
assumed with respect to the use of the information contained herein. While
every precaution has been taken in the preparation of this book, Microsoft
Corporation and Seiko Epson Corporation assume no responsibility for errors
or omissions. Further, this publication and features described herein are
subject to change without notice.
TRADEMARKS
Epson is a registered trademark of Seiko Epson Corporation.
FX'286 is a trademark of Epson America, Inc.
Copyright © 1981, 1986, 1987, and 1988 by Microsoft Corporation and Seiko
Epson Corporation.
Seiko Epson Corporation Microsoft
Nagano, Japan Bellevue, WA 98009
Table of Contents
Introduction 1
CHCP 4-20
CHDIR 4-22
CHKDSK 4-24
CLS 4-27
COMMAND 4-28
Table of Contents
COMP 4-31
COPY 4-33
CTTY 4'37
DATE 4-39
DEL 4-41
DIR 4-43
DISKCOMP 4-45
DISKCOPY 4-49
ERASE 4-52
EXIT 4-54
FASTOPEN 4-55
FC 4-57
FDISK 4-65
FIND 4-80
FORMAT 4-82
GRAFTABL 4-88
GRAPH24 4-90
GRAPHICS 4-91
HDCACHE 4-94
HELP 4-97
JOIN 4-98
KEYB 4-100
LABEL 4-104
MKDIR 4-106
MODE 4-108
MORE 4-120
NLSFUNC 4-121
PATH 4-122
PRINT 4-124
PROMPT 4-127
RECOVER 4-130
RENAME 4-132
REPLACE 4-133
RESTORE 4-136
RMDIR 4-139
SELECT 4-140
SET 4-147
SHARE 4-149
iv Table of Contents
SORT 4450
SUBST 4452
SYS 4454
TIME 4455
TREE 4457
TYPE 4459
VER 4460
VERIFY 4461
VOL 4462
XCOPY 4463
MENU 5-3
SETPRINT 5-41
XTREE 5-45
XTREEINS 5-73
BREAK 6-6
BUFFERS 6-7
COUNTRY 6-8
DEVICE 6-11
FCBS 6-13
FILES 6-15
LASTDRIVE 6-16
SHELL 6-17
STACKS 6-19
Device Drivers 6-21
Table of Contents v
Using Environment Variables 7-7
Introduction 8-2
DEBUG 8-3
EDLIN 8-23
EXE2BIN 8-43
LINK 8-45
Introduction 9-2
Using Code Page Switching 9-4
Setting Up Your System for Code Page Switching 9-6
Switching Between Code Pages 9-8
Appendixes
A Command Quick Reference A-l
List of Commands A-2
Configuration Commands A- 16
Table of Contents
Germany C-5
Italy C-5
Latin America C-6
Netherlands C-6
Norway C-7
Portugal C-7
Spain C-8
Sweden/Finland C-8
Switzerland C-9
United Kingdom C-9
United States C-10
Generating Special Characters C-l 1
Entering Characters Using Alt Gr C-ll
Index 1-1
Using MS-DOS, you can run the most powerful, sophisticated software
on the market While running your application program, you’re
today.
not even aware that MS-DOS is in the background, but it is handling
all the communication between the different components of your
system.
With the 1.44MB drive support you can use 3 '/2 -inch, 1.44MB diskette
Introduction 1
Version 3.3 comes with five international language code pages. This
means you can produce characters from a wide variety of languages,
provided you have a compatible printer or monitor device.
APPEND lets you create a search path for data files (and optionally, for
program files).
CHCP and NLSFUNC are two new commands that enable code page
switching.
COMP lets you compare two files or groups of files to see if they are
different.
2 Introduction
How to Use This Manual
The first manual provide some basic information
three chapters in this
about using MS-DOS.you have never used an operating system,
If
these chapters will help you get started. The rest of this manual gives
more detailed information about MS-DOS and its commands.
For more information, you might want to buy a book about MS-DOS,
such as Van Wolverton’s Running MS-DOS, (Bellevue, Washington:
Microsoft Press, 1985).
directories.
commands you can use to create batch files. Batch files let you group
commands in a single file to automate frequently used procedures.
Introduction 3
Appendix B lists and describes all the error messages you could possibly
encounter when using MS-DOS.
Appendix C illustrates the international keyboard layouts supported by
MS-DOS.
• All keys and function keys appear in boldface type, such as A, ESC,
and Enter.
• When you press two keys in combination, the names appear in bold
separated by a space, as in Ctrl Z. This means hold down the Ctrl
key and press Z.
TYPE d: filename
In the above command format, d and filename are parameters that
vary.You can use any disk drive descriptor and any filename when
entering this command. An example of this command is the
following:
4 Introduction
• When command, the command
instructions are given to type a
appears in uppercase DISKCOPY, CHDIR, or
letters like this:
Therefore, we ask that you contact the business where you purchased
your Epson product to request assistance. If they do not have the
answer to your question, they can obtain it through our toll-free dealer
support program.
We are confident that this policy will provide you with the assistance
Introduction 5
6 Introduction
Chapter 1
2. Place the MS-DOS startup diskette into drive A and secure the
drive. (See your User’s Guide for a complete description of turning
on your system and inserting diskettes.)
3. Press Enter to accept the current date. The time prompt appears:
Note
Ifyour computer does not have a real-time clock, you need to enter the
date and time each time you load MS-DOS. For a complete description
of how to enter the date and time, see the DATE and TIME commands
in Chapter 4.
Now you see the MS-DOS command prompt, A>. This is your starting
point.
Note
You can copy diskettes using the simplified Epson menu utility, MENU.
See the description of MENU in Chapter 5 for instructions.
When you finish making the copies, be sure to put the originals in a safe
place.
DISKCOPY A: B:
5. Drive A already contains the diskette you want to copy (the source)
and drive B contains the blank diskette (the target), so just press
any key. If the diskette in drive B is not formatted, the DISKCOPY
program formats it and then begins copying the data from drive A
to the formatted diskette in drive B.
DISKCOPY
and press Enter. The screen displays the following prompts:
5. Remove the MS-DOS startup diskette from drive A and insert the
blank diskette (the target) in the drive. Then press any key.
Note
If the MS-DOS diskette holds more data than can fit in the
computer’s 640KB of memory, the computer needs to copy the
contents of the diskette in two passes. The screen prompts you
when to insert and remove the diskettes.
Note
If your computer has a hard disk that has been set up to boot the
system automatically, MS-DOS displays the command prompt as C>.
press Enter.
Your screen displays the B> prompt. This means that MS-DOS is now
using drive B as the default drive. The system continues to read from
drive B until you log onto another drive or turn off or reset your
computer.
You don’t have to log onto a drive to run a program or find a file on
that drive. You can just type the drive descriptor before the program
name or file name. For example, if you want to run the CHKDSK
program while logged onto drive B, type the following and press Enter:
A: CHKDSK
You can perform three types, or levels, of resets. As you move from one
level to the next, you cause more of the system to halt and start over.
The three levels are: the MS-DOS BREAK, the operating system
reboot, and the hardware level restart.
The next level is the operating system reboot. This stops the computer’s
CPU (central processing unit) you to reload MS-DOS and
and forces
start over. Any program you is stopped, and any data not
are running
stored on disk is lost. After MS-DOS reloads, the date and time
prompts appear followed by the command prompt. To reset at this level,
hold down the Ctrl and Alt keys and then press the Del key.
If your computer has more than one of these drive types, you need to be
aware of certain incompatibilities between the drives and the diskettes
they use. These incompatibilities also apply to the same type of diskette
drives on other compatible computers.
each drive. You can also copy between a hard disk and any type of
files
diskette. You cannot use the DISKCOPY command to copy from one
drive to another if the two drives are not the same type.
Note
You can load MS-DOS from an application software diskette if
For certain functions, such as copying diskettes, your single drive can
act as two drives, drive A and drive B. Instead of A and B representing
two physical drives, they represent two different diskettes in the same
drive.
When you specify a file on a drive other than A, MS-DOS prompts you
to insert the diskette for that drive. If you type COPY LETTER B and :
press Enter, MS-DOS copies the file from the A diskette to the
computer’s memory and then the screen displays the following:
just viewed the directory of the B diskette and your default drive is A,
MS-DOS knows that the B diskette is still in the drive even though the
command prompt is A). If you now type DIR to view the directory of
the A diskette, MS-DOS prompts you to:
format a diskette in a different drive, substitute the letter for that drive
in the instructions below.)
1. Insert your working copy of the MS-DOS diskette that contains the
log onto drive C (and the appropriate directory) you have stored if
FORMAT B:
and press Enter. You see this prompt:
3. Insert the diskette you want to format into drive B, and press Enter
to start formatting. MS-DOS displays the head and cylinder
numbers as it formats each cylinder of the diskette.
Format complete
362496 bytes total disk space
362496 bytes available on disk
Format another (Y/N)?
log onto drive C (and the appropriate directory) if you have stored
the FORMAT program on the hard disk.
FORMAT A:
and press Enter. You see this prompt:
Format complete
362496 bytes total disk space
362496 bytes available on disk
Format another (Y/N)?
5. You can either format another diskette by pressing Y and Enter or
return to the MS-DOS system prompt by pressing N and Enter.
Ctrl C
Table 1-3 shows the control key functions available in MS-DOS.
Control key
combination Function
lost.
The following example shows how you can use the MS-DOS function
keys to edit a command line:
DIR PR0G._
5. Type TXT and press Enter to display information about a file
6. Type TYPE, press Insert and a space, and then press F3 and
Enter to display the contents of PROG.TXT.
T, FI, P, F3
When you release Alt, the specified character is displayed at the current
cursor position. For example, to print the Vi character, which is code
17 x ,
hold down Alt and type 171. When you release Alt, V2 appears.
When you are in graphics mode, you can display the characters from 128
to 255 only after loading the MS-DOS GRAFTABL character generator.
See Chapter 4 for information on the GRAFTABL command.
After you select one of these special keyboard commands, use the
appropriate international keyboard type to generate the characters
appearing on the keys. Appendix C includes illustrations of these
keyboards and complete details.
This section explains how to name, maintain, and protect your files.
Naming files
Each file must have a filename. A filename consists of up to eight
characters, identifying the information stored in the file. Although it is
When you use an extension, you must separate it from the filename by
a period. For example, a typical word processing filename looks like this:
LETTER DOC .
Application programs often determine the extensions for the files you
create. For example, if you store a file called TEXT, a program might
make a backup copy of that fileautomatically for you and call it
TEXT.BAK or TEXT.DOC. Avoid giving names and extensions used
by your application software.
LPT2, LPT3, and COM2, COM3, and COM4 are device names for
additional printers and serial ports. Your system can recognize these
devices, but cannot use them unless they are actually installed.
If the file you want is not on the default drive, type the letter of the
drive and a colon before the filename:
B:NEWFILE.EXT
Using these wildcards allows you to refer to a group of related files such
as all the files with .TXT extensions. This enables you to execute a
command affecting all of the files in the group without entering each
filename separately. For example:
B * *
: . Includes all files on drive B.
DIR B * BAS :
.
• To copy all .TXT files from drive A to drive B and rename them
with the .DOC extension, type:
Maintaining files
Protecting files
• Never remove a diskette when the drive’s light is on. (This does not
physically damage the diskette, but may prevent important data
from being written to the disk.)
the disk drive from writing on the disk. (Be aware that some
application programs do not work properly if the program diskette
is write-protected.)
At the top is the main directory, called the root directory. -If you never
create your own subdirectories (from the root directory), MS-DOS stores
all your files in the root directory. As you
more files, it may create
become difficult to find them because they are all in one directory. For
better organization, you can create separate subdirectories in which to
store your files.
1
I
RECEIV
—LEDGER
1
1
WORDPROC
1
ELECMAIL
|— ^"1
PAYABL SALES OUT IN
BUSINESS PERSONAL
1
NEWS.TXT MSGS.TXT
I 1
Each subdirectory has a name, and you can access any file in any
subdirectory by using a pathname. The root directory does not have a
name, but is always identified by a backslash \ ). The name of a (
Directory of A:\
If you are working in a directory named LEDGER, the screen displays
the following above the list of files:
Directory of A:\LEDGER
There are six basic operations you need to know to create and use
directories:
• Creating directories
• Changing directories
• Using pathnames
• Deleting a directory.
These procedures are described below, using examples from the tree
illustration above.
Creating directories
Use the MKDIR command to create a directory. (MKDIR stands for
Make Directory.) For example, to create the LEDGER directory under
the root directory, type the following and press Enter-.
MKDIR \ LEDGER
To save a few keystrokes, you can type just MD instead of MKDIR. For
example, to create the SALES directory under LEDGER, type the
following and press Enter:
MD \ LEDGERX SALES
To check that the LEDGER directory is in the root directory, type DIR
and press Enter. The screen displays a list of files in the root directory,
along with the new subdirectory:
LEDGER (DIR)
If you want to access files stored in a directory other than the current
one, you must first do one of the following:
• Change directories
Changing directories
To change directories, merely type CHDIR (or CD) followed by a
backslash and the name of the directory. For example, to change to the
LEDGER directory, type the following and press Enter:
CD \ LEDGER
CD or CHDIR stands for Change Directory, the backslash (for root
directory) specifies that the new directory is a subdirectory of the root
directory, and LEDGER is the name of the new directory.
Once you are in the directory, you can directly access any files it
contains.
CD SALES
To return to the root directory, type the following and press Enter:
CD \
This command takes you back to the root directory from any
subdirectory.
Using pathnames
You can access files in a different directory without leaving the current
one by specifying a path along with the filename. The path consists of a
series of directory names separated by backslashes.
\WORDPROC\PERSONAL\BETTY
The pathname \WORDPROC\PERSONAL\BETTY is the full
pathname for the file BETTY. You can use it no matter what directory
you are in (as long as it is on the same disk). The first backslash (for root
directory) signifies that the path to the file starts in the root directory.
WORDPROC is the name of the subdirectory under the root directory,
and PERSONAL is the subdirectory under WORDPROC.
In a pathname, the filename is always last and is always preceded by a
backslash. A backslash at the beginning of a pathname signifies the root
directory, but subsequent backslashes merely separate directory levels.
B \WORDPROC\PERSONAL\BETTY
:
you specify a search path for external commands or program files (those
having an extension of .COM, .EXE, or .BAT). This saves you the
trouble of entering the complete pathname when looking for these types
of files. See the descriptions of APPEND and PATH in Chapter 4.
you do enter the backslashes, MS-DOS looks in the root directory for
the directories and does not find them.
This represents the next directory above the current one, called
the parent directory. If EAST is your current directory, typing
DIR . . displays the contents of the SALES subdirectory.
TREE
The screen displays a report such as the following for every directory on
the drive:
Path: C:\LEDGER
Sub-directories: RECEIV
PAYABL
SALES
If you want to see a list of all the files in the directories, add the
command switch /F (switches are described in Chapter 3):
TREE /F
Path: C : \ SALES
Sub-directories: None
Files : DECSALES
FORECAST. 88
OCTSALES
NOVSALES
Note
When using the TREE command, be sure you are logged onto the drive
(and directory) where TREE.COM is stored or specify the drive location
in the command.
Removing a directory
If you no longer need a you can remove (delete) it with the
directory,
RMDIR (Remove Directory) command. But first, you must be sure the
directory does not contain any files; you cannot remove a directory that
is not empty. If you are sure you don’t want to keep any of the files in
the directory, delete them first; then you can remove the directory.
RMDIR \LEDGER\WEST
You must give the complete pathname when removing a directory.
Your system diskettes contain the files you can access. You can view
these files on your screen when you type the directory command, DIR,
and press Enter.
• Diskette operations
® File operations
• Directory operations
• Programming tools.
Diskette operations
The following files on your system diskettes let you manage the
information on your diskettes:
and puts volume labels on diskettes. Before using new diskettes for the
first time, you must format them.
command to store your hard disk files on diskettes. (Restore them from
diskettes to the hard disk with the RESTORE command.)
FDISK.COM partitions the hard disk to establish a work area for the
MS-DOS operating system on your hard disk. It also enables you to
start MS-DOS automatically from your hard disk (rather than a
RESTORE.COM lets you restore hard disk files. Use this command to
restore your files from diskettes (which you stored previously with the
BACKUP command) to the hard disk.
SELECT.COM lets you format your hard disk for the first time,
File operations
The following files on your system diskettes help you manage your files:
and set the archive bit on or off. You can also use this command to
COMP.COM lets you compare the contents of two files or two groups
of files to see if they are different.
FC.EXE compares two files and either verifies that they are identical or
reports the differences.
This command filters screen output so that a pause occurs each time the
screen fills. (Filters are described below.)
PRINT.COM is the file printing command that outputs your DOS text
files to a printer. While your file is printing, you can use the computer
for other tasks.
REPLACE.EXE lets you replace files on the target disk with files of the
same name from the source disk. You can also add new files, copying
them from the source to the target.
SORT.EXE sorts strings in text files. This command arranges the records
in a file in alphabetical or numerical order.
drive or path. Using this command, you can shorten a long path name
to just one letter.
optionally, list all the files they contain. Use this command to display
CHDIR, also called CD, shifts you to a different directory within the
MKD1R, also called MD, creates (makes) a new directory on your disk.
RMD1R, also called RD, removes an empty directory from your disk.
DRIVER.SYS you copy files from one drive to the same drive when
lets
the system has more than one diskette drive. Without DRIVER.SYS,
files are automatically copied to the second drive. When you need
DRIVER.SYS, just list it in a CONFIG.SYS file with the command
DEVICE = DRIVER. SYS. This automatically places it in memory at
startup. See Chapter 6 for more information on CONFIG.SYS and
DRIVER.SYS.
VER displays the number for the MS-DOS version you are using.
CALL allows a batch file to call another batch file without loading
another copy of COMMAND.COM.
ECHO enables or disables screen output during batch file operations.
FOR allows conditional repetitive processing in batch file operations.
REM lets you add remark statements to batch files to explain their
operation.
Programming tools
Your system diskettes contain four standard MS-DOS utilities you can use
in programming and designing assembly routines. You do not need to run
any of these in order to use your operating system or application programs.
EDL1N.COM is the editing utility for creating and modifying text files.
LINK.EXE is the utility that combines your object code modules into one
executable program. Use this command when constructing programs. (You
need a language assembler or compiler to create object modules.)
Command formats
To enter an MS-DOS command, you must understand the format of
the command. The format specifies everything MS-DOS needs to
perform a task. This includes the name of the command and any
parameters.
In this manual, the command name appears in all uppercase letters. You
can actually enter the name in upper- or lowercase letters. MS-DOS
does not recognize a difference.
The parameters you specify for each command are determined by the
command itself. Some parameters are required while others are optional.
• Any parameter that does not have square brackets around it. (This
indicates that the command requires these parameters.)
TYPE filename
You must enter bothTYPE and filename because they are shown
without special symbols. TYPE is the name of the command and
filename is a parameter. You can type any filename.
The chart below identifies the parameters you see in this book. The
descriptionsshow both the format and an example for each of the
parameters. The format shows what you see in the Format section for
each command (in chapters 4, 6, 7, and 8) and the example shows one
example of what you could type for that parameter.
Parameter Description
Format: d :
Example: A:
path The path name showing how to locate thefile on the disk,
Format: path
Example: \LEDGER\ SALES'\ WEST
The total number of characters in the path must not exceed
one line on the screen.
Format: filename
Example: NEWS TXT .
Format: X
Example: R
For instance, some commands can include optional switches that affect
the way the commands work. You always precede the switch name
(usually a letter) with a slash (/).
TYPE TEXTFILE
You can also use the semicolon (;), the equal sign ( = ), or the tab
key as delimiters. This manual shows the space only.
A \SALES\LETTER DOC
: .
A:\D0S\MENU
CHKDSK
DISKCOMP
DISKCOPY
FORMAT
JOIN
LABEL
RECOVER
SYS
You can store in a batch file any command that you normally run from
the command prompt.
You can create batch files with any text editor including the MS-DOS
EDLIN (described in Chapter 8). You can also
Line Editor, use the
COPY command with the CON device. The CON device allows you
to enter data from your keyboard and copy the data to a file.
The batch filename must include the extension .BAT so that MS-DOS
recognizes it as a batch file. To execute a .BAT file, type its name
without the extension. For example, if your batch filename is
.BAK, display a message indicating the files have been erased, and
display the directory of A. (This example uses the COPY command
with the CON device.)
Type each of the following lines exactly as shown. Press Enter after
typing each line:
Now, to use this batch file, simply type SAMPLE at the command
prompt and press Enter.
You can specify another batch file as the last command in a batch file.
If you press Ctrl C while MS-DOS is executing a batch file, you see the
following prompt:
If you remove the diskette containing the batch file during execution,
MS-DOS prompts you to insert it again before the next command can
be read. You see this message:
TYPE MYFILE.BAT
If you use the percent sign as part of a filename within a batch file, you
must type it twice. For example, to specify the file ABC%.EXE, you
type ABC %% .EXE in the batch file. When the batch file executes, you
see ABC % EXE , not ABC %% EXE
. .
—
Redirecting input and output You can instruct a program to read
input from a file rather than the keyboard, and you can direct output to
a file or printer instead of the monitor screen.
To direct MS-DOS to read input from a file instead of the keyboard, use
the less-than sign «) before the filename. For example, this command
sorts the text file NAMES.TXT:
SORT < NAMES. TXT
To direct output to a file instead of the monitor screen, use the greater-
than sign ()) before the filename. For example, this command stores the
directory of the default disk drive in a file called MYFILES.DIR:
Note
If the file MYFILES.DIR already exists, MS-DOS overwrites what is in
the file with the new data.
type two greater -than signs () )) before the filename. (If the file does not
exist, MS-DOS creates it.) For example, this command appends the
directory listing of the default drive to the existing file named
MYFILES.DIR:
DIR >>MYFILES.DIR
MS-DOS by two device names: PRN and LPT1.
recognizes a printer
Use names to redirect data output to a printer. For
either of these device
example, to send the file ABCDIR to the printer, turn on the printer
and use one of the following commands:
4. When the receiving end presses Enter, you must press Enter.
in some way, and then outputs it. In this process, the data is filtered by
the program.
You can put these filters together in many different ways and create
functions that take the place of a large number of specific commands.
See Chapter 4 for more details.
Command piping — You can give more than one command to the
system at a time by piping commands to MS-DOS. To do this, enter a
pipe separator ( j ) between command names. For example, this
command gives you an alphabetically sorted list of your directory:
DIR |
SORT
The pipe separator sends
all output for processing— generated by the
In other words, the output from the command on the left becomes the
input for the command on the right.
You can link more than two commands. For example, this command
sequence sorts your directory and displays it one screen at a time:
DIR |
SORT |
MORE
You can link several commands together as long as the output of one is
DEL
DIR 4,43
DISKCOMP 4,45
diskcopy ,;;;;;;;;;; 4_49
ERASE
EXIT 4,34
FASTOPEN 1 . 4-55
FC 4-57
fdisk 4 , 65
HND 4-80
FORMAT 4 , 82
GRAFTABL 4 , 88
GRAPH24 4,90
GRAPHICS ’ ' 4 , 91
HDCACHE '
‘
4.94
HELP ’4-97
JOIN 4,9s
KEYS 4-100
MKDIR 4406
MODE 4-108
MORE 4-120
NLSFUNC 4-121
PATH 4-122
PRINT 4-124
PROMPT 4-127
RECOVER 4-130
RENAME 4-132
REPLACE 4-133
RESTORE 4-136
RMDIR 4-139
SELECT 4-140
SET 4-147
SHARE 4-149
SORT 4-150
SUBST 4-152
SYS 4-154
TIME 4-155
TREE 4-157
TYPE 4-159
VER 4-160
VERIFY 4-161
VCL 4-162
XCOPY 4-163
• Format— gives the correct syntax for entering the command. Be sure
to read“Command Formats” in Chapter 3 for a complete
explanation of the command syntax.
C:\DOS\FDISK
Purpose
Sets a search path for data files. With the /X switch, also sets a path for
executable files.
Format
First time:
or:
APPEND [d:~]path[;[d:~\path . .
.]
or:
APPEND [;]
Description
Use APPEND to identify the directories that you want MS-DOS to
search to locate files that are not in the current directory. Once the
APPEND command is entered after loading MS-DOS, you can access
files that are in different directories without entering their pathnames.
Whenever you request a file from MS-DOS, it first searches the current
directory, then the directories listed in the APPEND command, then
any directories specified with the PATH command.
Because the APPEND command is an external command, you need to
precede it with the drive descriptor and pathname the first time you
APPEND 4-5
Use the format APPEND path; path) path to specify' several paths
by separating each path with a semicolon. MS-DOS searches the paths
in the order you specify.
Each time you use the APPEND command, the new path you specify
APPEND command.
replaces the path specified in the previous
MS-DOS. You cannot use the /X switch and specify the search path at
the same time; use the /X switch first, and then give the APPEND
command again to set the search path.
Note
Certain MS-DOS commands, such as BACKUP and RESTORE, set
their own search paths. If you include the /X switch the first time you
give the APPEND command, you must set the search path to null with
the command APPEND; before using either the BACKUP or
RESTORE command.
4-6 APPEND
Use the /E switch to store the APPEND paths in the DOS
environment. This enables you to display and change the APPEND
DOS environment values with either the APPEND or SET command.
Without the /E switch, MS-DOS stores the paths only in APPEND,
and you can use only the APPEND command to display or change
paths. For the command to be effective, you must include the /E switch
the first time you give the APPEND command after loading MS-DOS.
Cautions
Although APPEND can retrieve a file from a different directory, it does
not automatically return the file to its proper location when storing the
file. If you edit a file from another directory that was located by the
APPEND command, be sure to specify the complete pathname when
you store the file. Otherwise, the file is stored in the current directory,
not the one it came from.
If you use the ASSIGN command to reassign drives, do so after you
give the APPEND command the first time.
The maximum number of paths you can specify in an APPEND
command is 127. The maximum number of characters you can include
in a single command is 256.
If you make any mistakes when entering the path information in the
APPEND command, such as an invalid drive descriptor or path name,
MS-DOS does not detect the error until it needs to search for the specified
paths.
Examples
To tell MS-DOS to search your WORDPROCNBUSINESS directory
on drive C for data files and program files, type the following two
commands, pressing Enter after each:
APPEND /X
APPEND C NWORDPROCNBUSINESS
:
The command with the /X switch must come first and must be the first
APPEND 4-7
To search this path and two others, type the following and press Enter:
\LEDGER\ SALES
Now you can access any of the data or program files in these directories
without specifying the pathname.
To display the current APPEND path, type the following and press Enter:
APPEND
For the previous path, the screen displays the following:
\ LEDGERN SALES
To tell MS-DOS to search only the current directory and not the above
path, type the following and press Enter:
APPEND;
4-8 APPEND
ASSIGN External
Purpose
Assigns a new letter to a drive specification.
Format
[d:] [path ] ASSIGN [dl=d2...]
Description
Use ASSIGN to assign different letters to your disk drives. This can be
helpful application program recognizes only drives A and B
when an
and does not allow you to specify another drive such as C. Entering this
command lets you use other drives.
In the ASSIGN format, dl is the disk drive to receive the new letter
and d2 is the new letter. Both drives must exist; that is, they must be a
diskette drive, a hard disk drive, or a device driver such as VDISK.
Cautions
Use ASSIGN only when necessary. When you are done, cancel the
assignment. Do not use ASSIGN during normal use of MS-DOS.
ASSIGN B=C
Now, if you type DIR B : ,
you see the list of files on drive C.
ASSIGN 4.9
To make all references to drives A and B act upon drive C, type the
following and press Enter:
ASSIGN A=C B = C
lb reset all drives to their default assignments, type the following and
press Enter:
ASSIGN
4-10 ASSIGN
ATTRIB External
Purpose
Sets, displays, or removes the read-only attribute or archive bit for a file
or group of files.
Format
[d: ] [path] ATTRIB [±R] [±A] [d:] [path] filename [/S]
Description
Use the ATTRIB command to give you an extra level of protection for
important data files that you store on disk. Using ATTRIB, you can set
a file’s attribute to read-only. This allows the file to be read, but not
altered or deleted. (This is not the same as write-protecting the file.)
You can also use ATTRIB to set a file’s archive bit on or The
off.
archive bit tells MS-DOS which files have been altered so commands
such as BACKUP and XCOPY know which files to copy.
Note
An easier way to use the ATTRIB command is through the MENU
utility. See Chapter 5 for instructions.
ATTRIB +A sets the archive bit of the specified file so XCOPY and
BACKUP know to copy the file. ATTRIB -A turns off the archive bit,
indicating the file has not been altered and does not need to be
archived. After you copy a file with XCOPY or BACKUP the file’s
ATTRIB 4-11
You can use wildcards (* and ?) in the filename to specify groups of files.
Use the /S switch when you want ATTRIB to process every matching
file in a specified directory and all of its subdirectories.
Caution
If you use REPLACE /R, you can overwrite a read-only file with the
source file. If you use XCOPY /M to copy a file whose archive bit is set,
XCOPY will turn off the archive bit of the source file. See the
REPLACE and XCOPY commands in this chapter.
Examples
To set the read attribute of a file named BETTY to read-only, type the
following and press Enter:
ATTRIB +R BETTY
To remove the read-only attribute of all files on drive A, type the
following and press Enter:
ATTRIB -R A:*.*
To set the archive bit of all files on drive C in the SALES directory, type
the following and press Enter:
ATTRIB +A C:\SALES\*.*/S
The /S sets the archive bit of all files in any subdirectories of the
SALES directory.
To turn off the archive bit of a file named MEMO.TXT, type the
following and press Enter:
ATTRIB -A MEMO.TXT
In the following example, a file called EPSON.TXT on drive C has been
set to read-only (+R) and has had its archive bit set (+A). To display
the current attributes of this file, type the following and press Enter:
ATTRIB EPSON.TXT
4-12 ATTRIB
The screen displays:
R A C:\EPSON.TXT
The letters R and A appear only when the applicable attribute is set.
C:\EPSON.TXT
A file’s archive bit is always set unless you turn it off. If you have not
used the ATTRIB command with the EPSON.TXT file and enter the
command ATTRIB EPSON.TXT , the screen displays the following:
A C:\EPSON.TXT
ATTRIB 4-13
BACKUP External
Purpose
Backs up (copies) one or more files from one disk to another in a special,
condensed format.
Format
[d:] [path] BACKUP dl: [path] [filename] d2:[/ S][/A][/F]
[/M] [/D: date] [/T time] [/L[ : [d: ] [path] filename ]
:
Description
Use BACKUP to back up one or more files from one disk to another.
You can back up files in any of the following ways:
• Diskette to a diskette
Note
An easier way to use the BACKUP command is through the MENU
utility. See Chapter 5 for instructions.
The disk that contains the files you want to back up is called the source
disk. The target disk is the disk being used to store all the backed up files.
4-14 BACKUP
In the command format above, dl: represents the source and d.2:
BACKUP 4-15
If you do not specify a drive and path, the log file is stored in the root
directory of the source drive. If a log file already exists, the new log
The first record in the log file specifies the date and time of the backup.
Each subsequent record contains the backup disk number and complete
pathname and filename for each file backed up.
If you do not specify the /A switch, BACKUP deletes all files stored on
the target disk.
When you use the /A switch to add files to diskettes, be sure to back up
the additional files on the last diskette in the series. Otherwise,
MS-DOS displays an error message.
BACKUP does not format the target diskettes unless you include the /F
switch. If you are going to back up many files (or even a few very large
in order.
4-16 BACKUP
Ifyou want to stop the BACKUP procedure after it has started, press
Ctrl Break. MS-DOS cancels the command and displays the system
prompt on the screen.
If you are sharing files, you can back up only those files that you
normally can access. If you try to back up a file that you are not
PATHNAMEXFILENAME EXT .
Caution
Do not use BACKUP while the APPEND /X, ASSIGN, JOIN, or
SUBST commands are in effect.
Examples
To back up all files on the hard disk (drive C) to the diskette(s) in drive
A, type the following and press Enter:
BACKUP C :* .* A:/S
This command backs up all files in the current directory and all of its
subdirectories on drive C.
BACKUP B: FILEIT.DOC A:
BACKUP 4-17
To back up to drive A all files on C in the current directory that
drive
have been modified since the last BACKUP and format any
unformatted diskettes in the process, type the following and press
Enter:
BACKUP C: A:/M/F
To back up all files on drive C that have been modified since March 15,
BACKUP C: A:/D:3-15-88/L
Using the /L switch creates a log file named BACKUELOG in the root
4-18 BACKUP
BREAK Internal
Purpose
Enables or disables the Ctrl C function.
Format
BREAK [ON]
BREAK [OFF]
Description
Use BREAK to turn on or off the MS-DOS abort current command
(Ctrl C) function. Normally, MS-DOS checks for Ctrl C only while it is
Ifyou are running an application program that uses Ctrl C itself, type
BREAK OFF to turn off the MS-DOS Ctrl C function. Then, when you
press Ctrl C, you affect your application program and not the operating
system.
When you have finished running your application program and are
using MS-DOS, type BREAK ON to turn the Ctrl C function on again.
To display the current setting of BREAK, type BREAK only without
ON or OFF. If BREAK is OFF, the screen displays:
BREAK is off
You can also turn on the abort current command function by including
BREAK = ON in your CONFIG.SYS file. See Chapter 6.
BREAK 4-19
CHCP Internal
Purpose
Displays or changes the current code page (character set).
Format
CHCP [nnn]
Description
Use the CHCP command to display the current code page or to select a
different one. Unlike the MODE command, which lets you change the
code page for a particular device, CHCP changes the code page for the
entire system.
The nnn represents the number of the code page you want to use:
If you do not specify a number, the screen displays the number of the
current code page for the system.
4-20 CHCP
• Be sure that the COUNTRY.SYS file, which contains country
information, is accessible to the CHCP command. If it is not in the
current directory, you can use the COUNTRY = statement in the
CONFIG.SYS file or the NLSFUNC command to tell MS-DOS
where to find COUNTRY.SYS.
If you are running an application program and then give the CHCP
command, the program continues to use the original code page. If you
start a program after giving the command, it uses the new page code.
If the code page you select is not prepared for the system, the screen
displays a message such as this:
original code page, you need to reenter its number in the CHCP
command.
Examples
To display the current code page, type the following and press Enter:
CHCP
If the current code page is the US, the screen displays the following:
CHCP 850
CHCP 4-21
CHDIR Interned
Purpose
Changes or displays the current directory.
Format
CHDIR [d:] [path]
CD [d:][path]
Description
Use CHDIR to change the current directory to another, or to display
the current directory path of a drive. You can type either CHDIR or
CD.
Unless you set a path, MS-DOS looks in the current directory (on the
current drive) to find files. You can set a path of up to 64 characters
starting from the root directory. Indicate the root directory with a
leading backslash ( \ ).
Caution
The current directory may be hidden by ASSIGN, SUBST, and JOIN.
Examples
If your current directory is \LEDGER\SALES\WEST and you want
CD \WORDPROC\BUSINESS
4-22 CHDIR
To display the current directory, type only CHDIR and press Enter. The
screen displays your current directory. For example, if your current
directory is \WORDPROC\BUSINESS, the screen displays the
following:
B \WORDPROC\BUSINESS
:
CHDIR ..
CHDIR \
CHDIR 4-23
CHKDSK External
Purpose
Checks the directories, files, and file allocation tables on the specified
disk and produces a disk and memory status report.
Format
[d:] [path] CHKDSK [d:] [path] filename ] [/F] [/V]
Description
Use CHKDSK to inspect the status of a diskette or hard disk and report
the number of files, the amount of total disk space and space still
available for use, and the amount of internal memory available.
Note
An easier way to use the CHKDSK command is through the MENU
utility. See Chapter 5 for instructions.
You can specify a filename and CHKDSK will report the number of non-
contiguous areas occupied by the file (or all the files if you specify *.*).
4-24 CHKDSK
You can use two switches with CHKDSK:
Switch Function
also include the /V switch, CHKDSK outputs the filenames and messages
to the file.
Do not use the /F switch if you redirect the output to the same disk
drive. The addition of a new filename to the directory would
automatically cause an error.
Cautions
Do not use CHKDSK on drives specified in a SUBST or JOIN
command.
Examples
To check the disk in drive B, type the following and press Enter:
CHKDSK B:
If CHKDSK does not find any errors, you see a status report similar to
this:
CHKDSK 4-25
To check the disk in drive A and display all the files and their paths,
type the following and press Enter:
CHKDSK A:/V
You see a status report like the one above plus a display of all the files
CHKDSK BUSINESS
If the file contains non-contiguous areas, CHKDSK displays the
following message:
B: \BUSINESS
Contains 2 non-contiguous blocks
4-26 CHKDSK
CLS Internal
Purpose
Clears the monitor screen.
Format
CLS
Description
Use CLS to clear your monitor screen. MS-DOS clears your screen and
displays the command prompt in the upper left corner of the screen.
If you have loaded ANSI.SYS and have set screen attributes, the CLS
command does not change the attributes.
Example
On a screen filled with text, type the following and press Enter:
CLS
CLS 4-27
COMMAND External
Purpose
Loads a secondary command processor.
Format
[ d : ] [path COMMAND
'] [d:][path] [CTTY-dey]
[/C command ] [/E :nnnnn] [/P]
Description
If you have loaded a top-level command processor in place of
COMMAND.COM, use COMMAND to load a secondary command
processor.
The space in memory that the transient part occupies is not reserved
and application programs are permitted to overwrite it. Therefore,
programs sometimes have to reload this transient part.
initialization.
4-28 COMMAND
You can CITY-dev parameter to select a different device (such
use the
as AUX) for input and output. See the description of CTTY later in
this chapter for more information.
Examples
To load a secondary command processor and have it execute the DIR
command (for drive B), and then exit back to the primary command
processor, type the following and press Enter:
COMMAND /C DIR B:
COMMAND 4-29
To load a new command processor with an environment size of 100
paragraphs and cause it to become permanent in memory, type the
following and press Enter:
COMMAND /E:1600 /P
4-30 COMMAND
COMP External
Purpose
Compares the contents of one file or group of files to another.
Format
[d:] Qpat.fr] COMP [d:] [patfr] [ filename ]
[d:] [patfr] [filena/ne]
Description
The COMP command compares single files or groups of files by
examining each byte of information. The files can be in the same
directory or in different directories on the same or on different disks.
Note
Use COMP if you just want to know if the files are the same. If you
want more detailed information about the files, you may prefer to use
the FC command.
If the filesyou want to compare are not on the same disk as COMP
type the COMP command without any parameters. The program then
prompts you for the filenames, and you can insert the proper diskette.
If the two files to be compared are not the same size, COMP displays
the following prompt and stops the comparison:
When the program finds bytes that do not match, it displays a message
such as the following.
COMP 4'31
Compare error at OFFSET 10
File 1 = 48
File 2 = 71
This error message gives the hexadecimal location (the offset) and the
value of bytes that do not match. After finding 10 unequal
comparisons, COMP quits and displays this message:
10 Mismatches - ending compare
If you comparing more than two files, the next pair matching the
are
filename specification are compared. When COMP finishes comparing
all the specified files, it displays this message:
Press Y if you want to compare more files — the program prompts you to
enter the filenames, etc.— or press N to exit the program.
For all comparisons, COMP looks at the last byte of the files to verify
that they contain a valid end-of-file mark (Ctrl Z). If it does not find this
mark for a file, COMP displays this message:
Eof mark not found
Examples
To compare all files with the extension .TXT on drive A with files on
drive B with the same names, type the following and press Enter:
4-32 COMP
COPY Internal
Purpose
Copies one or more files to the same or to another disk and optionally
renames or merges them.
Format
COPY [d: ] [path] filename [d: ] [path] [ filename
[/A] [/B] [/V]
Description
There areseveral ways to use the COPY command to copy files. You
can do any of the following:
• Copy individual files from one disk to another or to the same disk
• Combine or merge files into one file with each file starting at the
end of the preceding file.
To copy files—In the first COPY format above, the first file
specification is the source file and the second one is the destination file.
If the source and destination files are in the current directory, you need
not specify a complete path; simply specify the filenames.
COPY 4-33
The source fileand the destination file must either be on different
directories or have different names. If you try to copy a file without
specifying a different directory or a different filename for the destination
file, the copy stops and the screen displays an error message.
COPY dl: path \ filename d2: copies the original file to the drive
a file on the default drive, using the new filename you specify.
Switch Function
Use /V to select Verify mode. MS-DOS then verifies that the sectors
are recorded properly during the COPY process. This is the same check
that results from the VERIFY ON command. However, /V is effective
4-34 COPY
Use /A to select ASCII mode, which indicates that you are processing
ASCII, or text, files. When you use / A with a source file specification,
the copy includes data but does not include the first end-of-file mark (in
EDLIN, this is Ctrl Z). The remainder of the file does not copy. When
you specify a destination file, the /A switch adds an end-of-file character
as the last character of the file.
Use /B to select Binary mode, which indicates that you are processing
binary, or program, files. When you use /B with a source file
specification, the copy contains the entire file, including any end-of-file
mark. When you specify a destination file, the /B switch does not add
an end-of-file character.
To merge files — Use the second COPY format above to merge files.
Type any number of filenames separated by plus signs ( + ). For example,
the following command combines three files into a new file called
newfile
You can also use wildcards and file extensions to combine the files and
create additional files.
COPY filename +,
Caution
Do not try to merge files if one of the source filenames has the same
if ALL.LST already exists, do
extension as the destination. For example,
not use the command COPY * LST ALL LST. MS-DOS overwrites
. .
the original ALL.LST on the destination diskette and detects this error
only when the copy is complete.
COPY 4-35
Examples
To copy all files from drive A to drive B, type the following and press
Enter:
COPY A:*.* B:
To copy all .TXT files in the specified path to the root directory of the
hard disk, type the following and press Enter:
C:\
To copy the file 620.TXT (in the \ELECMAIL\IN directory) to the
\WORDPROC\PERSONAL directory, type the following and press
Enter:
COPY STATUS.TXT +,
4-36 COPY
CTTY Internal
Purpose
Changes the input/ output device.
Format
CTTY device
Description
Use Cl l Y to change the device you are using. You can direct input
and output to the following devices:
Device Description
You can specifyLPT2, LPT3, and COM2, COM3, and COM4 as long
as that device is installed in or connected to the system.
You can use printers as output devices only. You cannot use a printer for
input.
Caution
Once you use CTTY, input is no longer accepted from the keyboard
and you would have to reset the computer. Therefore, use the CTTY
command in a batch file. Remember to include CTTY CON at the end
of your batch file to return control to the keyboard.
CTTY 4-37
Examples
To direct all command output from the current device (the keyboard),
to the AUX port (which may be a printer), type the following and press
Enter:
CTTY AUX
To direct all command input and output back to the keyboard and
monitor, type the following and press Enter:
CTTY CON
Here is an example of a batch file you can create, directing output to
the printer and then back to the screen:
4-38 CTTY
DATE Internal
Purpose
Displays and/ or sets the system date.
Format
DATE [ mm-dd-yy]
DATE [dd-mm-yy']
DATE [,
yy-mm-dd ]
Description
Whenever you create a new file or alter an existing one, MS-DOS
records the date and time with that file in its directory. You can use the
DATE command to display the current date or set a new date for the
system. The file directory then records this date on all files that are
created or modified.
You can display the current system date by typing DATE and pressing
Enter. If you are using the United States country code, a message
similar to this appears:
For other countries, the month and day are reversed or the year may
come first. (The way the current date displays depends on which
COUNTRY command is included in the CONFIG.SYS file. United
States is the default setting.)
PressEnter if you do not want to change the current date. Or, enter a
new date and then press Enter. MS-DOS returns to the command
prompt.
DATE 4-39
Enter the date using numbers only. You need not enter the day of week.
The numbers must be in the following ranges:
® mm must be from 1 to 12
• dd must be from 1 to 3
You can separate the month, day, and year entries with hyphens (-),
slashes (/), or periods ( . ).
MS-DOS updates months and years correctly, whether the month has
31, 30, 29, or 28 days. MS-DOS also accommodates leap years.
Examples
To set the date for April 20, 1988, you can type any one of the following
(using the U.S. format):
4 / 20/88 04 / 20/88
4 / 20/1988 04 / 20/1988
4 - 20-88 04 - 20-88
4 - 20-1988 04 - 20-1988
you have used the COUNTRY = United Kingdom in the
If
CONFIG.SYS file, you would type the date in one of these formats:
20 / 4/88
20 - 4-1988
20 4.88
.
4-40 DATE
DEL Internal
Purpose
Deletes a file or group of files.
Format
DEL [d: ] [path ] filename
Description
Use DEL to delete one or more files. (You can type ERASE instead of
DEL.)
DEL filename deletes the specified file from the current directory.
You can use the wildcard characters (?and *) to delete groups of similar
files. The command DEL * . ext deletes all files with the specified
extension from the current directory on the default drive.
You can delete all files from a directory or disk by using wildcard
characters for the filename and extension. Type DEL * . * and you see
this prompt:
Press Y and Enter to delete all files in the current directory. Press N and
Enter to cancel the DEL command.
If you enter a pathname but no filename in the command, MS-DOS
assumes you want to delete all the files in the specified path. Since this is
the same as entering * . #, you see the same prompt and have an
opportunity to cancel the command.
DEL and ERASE delete files only. You cannot delete a directory with
these commands. To delete a directory, use the RMDIR command.
Cautions
Be sure you no longer need a file before you delete it.
DEL 4-41
Examples
To delete the file SEEME from the current directory on the default
drive, type the following and press Enter:
DEL SEEME
To delete all files on drive B with a .BAK extension, type the following
and press Enter:
DEL B * BAK
:
.
4-42 DEL
DIR Internal
Purpose
Lists the files in a directory.
Format
DIR [d: ] path ] filename ] [/P] [/W]
Description
Use DIR to display a list of the files in a directory. You can display the
entire directory or a portion of the directory.
The information DIR displays includes the filename and extension, the
size (in bytes),and the date and time the file was last modified. The
directory listing also displays the volume identification and the amount
of free space left on the disk.
named AUTOEXEC.BAT:
Note that the format for date and time is dependent on the
COUNTRY command set in your CONFIG.SYS file. See Chapter 6,
You can use the wildcard characters ? and * in the filename. For
example, the following DIR commands are equivalent:
Command. Equivalent
DIR 4-43
You can specify two switches with DIR:
Switch Function
Examples
To list all filesand any subdirectories in the current directory on the
default drive one screen page at a time, type the following and press
Enter:
DIR /P
To list all files and directories on drive B, type the following and press
Enter:
DIR B:
To list all the files in the SALES directory on the default drive, type the
following and press Enter:
DIR \ SALES
To list a file named DEVST.MT on drive A, type the following and
press Enter:
DIR A: DEVST.MT
To list all files with a .COM extension in wide display, type the following
and press Enter:
DIR *.C0M /W
To list all files in the current directory whose names begin with MEMO
followed by a single character that varies, type the followiong and press
Enter:
DIR MEMO?
4.44 DIR
DISKCOMP External
Purpose
Compares the contents of two diskettes.
Format
[d:] [path]DISKCOMP [dl: [d2:]] [/ 1] [/8]
Description
Use DISKCOMP to compare sectors on one diskette with those on
another diskette. An examination by sector tells whether the diskettes
are exactly alike. Use DISKCOMP with diskettes only. You cannot
compare a diskette to a hard disk.
Note
Use this command to compare entire diskettes. To compare files, use the
COMP or FC command. You can also compare diskettes using the
Epson MENU utility. See Chapter 5 for instructions.
The order in which you specify drives sets the order for reading and
comparing. The diskette in the first drive you specify is read, then
DISKCOMP compares the contents of the diskette in the second drive
to those of the first. DISKCOMP then reports at which points the
second diskette fails to match the first.
If you are logged onto a hard disk drive, you must include both drive
descriptors in the command, even if you have only one diskette drive.
If you are logged onto a diskette drive and specify only one drive,
DISKCOMP reads the diskette in the specified drive first and then
compares it to the disk in the default drive. For example, if you are
logged onto drive A, typing DISKCOMP B : compares the diskette in drive
B to the diskette in drive A, showing possible differences between the two
diskettes.
DISKCOMP 4-45
Note
The disks you are comparing must be of the same type. You cannot, for
Batch files using DISKCOPY can also use DISKCOMP Other batch
files dealing with diskette housekeeping can make frequent use of this
comparison command. Your own operating needs determine just how
you use DISKCOMP
4-46 DISKCOMP
Note
If you compare a diskette with abackup version you made using the
COPY command, you may an error message even though the
receive
two diskettes contain the exact same files. This happens because
although COPY copies the files exactly, they may not be stored in the
same sectors on the two diskettes. The diskettes are identical if you use
the DISKCOPY command to make the backup copy.
Cautions
If you have used ASSIGN to reassign disk drive descriptors,
DISKCOMP may not work properly. Cancel the assignments and then
run DISKCOMP
Do not use DISKCOMP on any drives that are being used in a SUBST
or JOIN command.
Examples
To compare the diskette in drive B to the one in drive A, type the
following and press Enter:
DISKCOMP A: B:
After DISKCOMP loads, it displays the following screen prompts:
DISKCOMP 4-47
If DISKCOMP detects any differences, the screen reports each of them
by track and side. For example:
reports:
Compare OK
When the comparison is complete, your screen displays:
you do repeat the procedure, remember that the same drive order
applies in your next comparison.
448 DISKCOMP
DISKCOPY External
Purpose
Copies the contents of one diskette to another.
Format
[d: ] [path] DISKCOPY [dl: \_d2: ] ] [/l]
Description
Use DISKCOPY to copy the contents of the diskette in the source drive
to the one in the destination drive. If you enter DISKCOPY A B the :
: ,
Use this command to copy entire diskettes. To copy files, use the COPY
command.
Note
An easier way to use the DISKCOPY command is through the MENU
utility. See Chapter 5 for instructions.
You can specify the same drive as your source and destination drive, or
you can specify different drives. When the source and destination drives
are the same, MS-DOS performs a single-drive copy operation.
DISKCOPY prompts you to insert the diskettes at the appropriate times
and waits for you to press any key before continuing.
If you copy a 360KB diskette in a 1.2MB drive, you may have trouble
reading that diskette in a 360KB drive later. Read “Drive and diskette
incompatibilities” in Chapter 1 for more information.
When the copy operation begins, you see this message when copying a
1.2MB diskette:
Copying 80 tracks
9 Sectors/Track, 2 Side(s)
DISKCOPY 449
DISKCOPY then checks to see if the destination diskette is formatted
and in the same format as the source disk. If not, DISKCOPY formats
the diskette. You see this message:
descriptor, the current drive is also the destination drive. You cannot
give the DISKCOPY command without drive descriptors if you are
currently logged onto the hard disk drive.
Cautions
Diskettes become fragmented when you create and delete a lot of files.
This is because diskette space is not allocated sequentially. The first free
Ifyou have reassigned disk drive descriptors with ASSIGN, cancel the
assignments before you run DISKCOPY. Otherwise, you could destroy
data.
Do not use DISKCOPY on any drives that are being used in a SUBST
or JOIN command.
4-50 DISKCOPY
This command may not work in a network environment.
If you copy to a 360KB diskette in 1.2MB drive, you may have trouble
reading the diskette in a 360KB drive.
the source diskette in drive A and the target diskette in drive B. Then
type the following and press Enter:
DISKCOPY A: B:
DISKCOPY 4*51
ERASE Internal
Purpose
Erases a file or group of files.
Format
ERASE [d: ] path ] filename
Description
Use ERASE to erase (delete) one or more files. (You can type DEL
instead of ERASE.)
ERASE filename erases the specified file from the current directory.
You can use the wildcard characters (? and *) to erase groups of si milar
The command ERASE * ext erases all files with the specified
files. .
You can erase all files from a directory or disk by using wildcard
characters for the filename and extension. Type ERASE* . * and you
see the prompt:
the same as entering * . *, you see the same prompt and have an
opportunity to cancel the command.
ERASE and DEL erase files only. You cannot erase a directory with
these commands. To erase a directory, use the RMDIR command.
You cannot erase a file that is marked as read-only.
Cautions
Be sure you no longer need a file before you erase it.
4-52 ERASE
Examples
To erase a file named MEMO in the current directory, type the
following and press Enter:
ERASE MEMO
To erase all files on drive B with a .BAK extension, type the following
and press Enter:
ERASE B * BAK :
.
ERASE C:\WORDPROC\BUSINESS
ERASE 4-53
EXIT Internal
Purpose
Exits the command processor and returns to an application program.
Format
EXIT
Description
Use EXIT to exit to the command processor, COMMAND.COM, and
return to an application program.
Note
If you used the /P switch when giving the COMMAND command,
EXIT does not work.
You can use this command only if you are running an application
program that supports it. A number of application programs do so.
Example
To format a diskette in B while in a program that allows you to exit:
2. Change the current drive and directory to the one that contains
FORMATCOM (unless you have set the appropriate path).
3. Type FORMAT B : and press Enter.
4. When the command prompt reappears, type EXIT and press Enter
to return to the application program.
4-54 EXIT
FASTOPEN External
Purpose
Speeds up access to frequently used files and directories on a hard disk.
Format
Id: ] [path] FASTOPEN d: [=nnn] . .
Description
FASTOPEN monitors the location of files and directories on a hard
disk, enabling MS-DOS to find your files faster. This is especially useful
for complex directories or when you run application programs that
require several files to work.
Every time you access a directory or open a file, FASTOPEN records its
name and location in a list in memory. Then, the next time you access
that directory or file, MS-DOS locates it faster because it does not need
to search for it.
FASTOPEN works only on hard disks and does not work over a
network. You can use the program on up to four hard disks at a time.
Repeat the d:=nnn format for each drive you want FASTOPEN to
monitor.
You can give the FASTOPEN command only once after you load
MS-DOS; so be sure to include all the drives you want affected in the
first command. you need to change any of the settings, reload
If
track of. The number can be from 10 through 999. If you do not enter a
number, the default is 10.
FASTOPEN 4-55
Example
To track the location of 150 files on drive C:, type the following and
press Enter:
FASTOPEN C:=150
4-56 FASTOPEN
FC External
Purpose
Compares files on your disk.
Format
[d: ] [pa t£] FC [/A] [/B] [/C] [/L] [/N] [/T] [/W] [/LB a]
[/.n][d: ][patd] filename 1 [d: ][path] filename2
Description
Use FC to compare two files on your disk if you want to know exactly
where they are different. You can output any differences between the
two files to the monitor or to a third file.
Note
If you just want to know if two files are different, you may prefer to use
the COMP (compare) command. It is simpler but does not provide the
detailed information that FC produces. An easier way to use the FC
command is through the MENU utility. See Chapter 5 for instructions.
You can compare either text files or binary files. Text files are files
When comparing binary files, FC displays all bytes that differ. When
comparing ASCII files, FC displays the lines that differ unless the
number of consecutive lines that differ exceed the size of the internal
buffer.
FC 4-57
You can use the following switches with FC:
Switch Function
When you use /A, only the beginning and ending lines of each set
4-58 FC
Use /C to ignore the case of letters so FC treats uppercase and
lowercase letters as equals. Only use /C in source comparisons. With
/C set, these lines are a match:
Much_MORE_data_IS_NOT_FOUND
much_more_data_is_not_ found
Use /T to compress tabs and use /W to compress both tabs and spaces
during the comparison. Only use /W in source comparisons. With /W
set, FC views multiple, contiguous blanks in any line as a single space.
Note that although FC compresses blanks, it does not ignore them. The
two exceptions are beginning and ending blanks in a line, which FC
does ignore. For example (the underscores represent blanks), FC sees all
but the fourth line as matches:
More__data_to_be found
More_ data _ t o_be_ found
More data_to_be found
Moredata_to_be_ found
DATA_was_ found
data _was_ found
Use /LB n to set the size of the internal line buffer. The default length is
100 lines. If the two files have more than this number of consecutive
differing lines, FC aborts.
FC 4-59
If the files are identical, FC completes the comparison and the
command prompt reappears on the screen. No message appears.
If the files are not identical, FC reports the differences between the two
files you specify by displaying the first filename, the first line that
matches, then the lines that differ between the files, and finally, the last
line to match in both files. FC then displays the name of the second file
along with the first and last line that match. The default for the number
of lines to match between the files is two. (lb change this default, specify
the number of lines with the /n FC continues to list each
switch.)
difference. FC then returns to the MS-DOS command prompt.
FC displays the differences and matches between the two files you
specify on your screen unless you redirect the output to a file. Use the
greater-than symbol (>) to redirect output to the printer or to a file.
The following command compares Filel and File2, and sends the output
to DIFFER.TXT on the default drive:
4-60 FC
Examples
To understand how FC compares differences, you could store these two
ASCII files on disk:
ALPHA.ASM BETA.ASM
A A
B B
C C
D G
E H
F I
G J
H 1
I 2
M P
N Q
O R
P S
Q T
R U
S V
T 4
U 5
V W
w X
X Y
z Z
To compare the two files and display the differences on the screen, type
the following and press Enter:
FC ALPHA.ASM BETA.ASM
FC does not compress blanks and does not ignore case. Here, two lines
must be the same to constitute a match.
FC 4-61
The screen displays the following (the notes do not appear):
* * * * * ALPHA. ASM
V Note: ALPHA file contains VW
W where BETA contains V 45W.
* * * * * BETA. ASM
V
4
5
W
* * * * *
4-62 FC
You can print the differences on the printer using the same two source
files. In this example, four successive lines must be the same to
constitute a match. Type the following and press Enter:
* * * * * ALPHA. ASM
C
D
E
F
G
H
I
M
N Note: P is the first of a string of 4
0 matches.
P
* * * * * BETA. ASM
C
G
H
1
J
1
2
P
* * * * * ALPHA. ASM
V Note: W is the first of a string of 4
W matches.
* * * * * BETA. ASM
V
4
5
W
FC 4-63
The /B switch in the next example forces a binary comparison. You
must type this switch and any other before the filenames in the FC
command line.
00000009 44 47
00000009 45 48
0000000F 46 49
00000012 47 4A
00000015 48 31
00000018 49 32
0000001B 4D 50
0000001E 4E 51
00000021 4F 52
00000024 50 53
00000027 51 54
0000002A 52 55
0000002D 53 56
00000030 54 34
00000033 55 35
00000036 56 57
00000039 57 58
0000003C 58 59
0000003F 59 5A
You can specify a path to locate the files you want to compare. For
example:
FC B:\WORDPROC\BUSINESS\BLUE.TXT
\WORDPROC\BUSINESS\BLUE BAK .
4-64 FC
FDISK External
Purpose
Creates one or more partitions on a hard disk.
Format
[d:] [pa th] FDISK
Description
Use FDISK to partition a hard disk so it can run the operating system(s)
you want to use. (FDISK stands for “fixed disk,” which is another term
for hard disk.) You can divide your hard disk into as many as four
separate partitions to run four operating systems. If you are using only
MS-DOS, you need only one partition.
WARNING
Use FDISK before storing files on a hard disk. If you already have files
—
stored on the hard disk, back up these files first or they will be
destroyed. Also, FDISK does not work on drives that have been
reassigned by the SUBST or JOIN command.
FDISK 4-65
Checking the Hard Disk for Partitions
Before you can use a hard disk, it must be partitioned and then
formatted for MS-DOS. Your dealer may have already partitioned your
hard disk and formatted it so it automatically loads MS-DOS when you
turn it on. If this is the case, you do not need to run FDISK.
If you are not sure whether your hard disk has already been prepared
for use, do the following:
2. If MS-DOS does not start, you need to check whether the disk has
been partitioned. To do this, place the MS-DOS startup (system)
diskette in drive A and press Ctrl Alt Del to start MS-DOS.
Note
After you have partitioned the hard disk, be sure to format it for
Starting FDISK
Follow these steps to run FDISK:
4-66 FDISK
2. At the A> prompt, type FDISK and press Enter. The screen
displays the FDISK Options menu:
FDISK Options
Current Fixed Disk Drive: 1
Choose one of the following:
If your computer has more than one hard disk, a fifth option
appears on the screen:
3. Press the number for the option you want and press Enter. Then
see the instructions below for that option.
3.
Creating an MS-DOS Partition
You must create a DOS partition to run MS-DOS on your computer.
But you also can create other partitions on the hard disk. Press 1 on the
FDISK Options menu to select the Create DOS Partition option. Press
Enter. The screen displays the following:
displayed:
FDISK 4-67
You must create a primary MS-DOS partition before you can create an
extended MS-DOS partition on the hard disk.
Typically,you need only one MS-DOS partition for your entire hard
disk. You may, however, want to create an extended partition to
designate one or more logical drives for the disk. Follow the appropriate
instructions below for the option you choose.
Note
If your hard disk already contains four partitions and you select option
1 or 2, an error message appears.
If you plan to run another operating system on the hard disk, the
MS-DOS partition cannot occupy the entire disk. See “Using part of
the hard disk for MS-DOS” below.
4-68 FDISK
Using the entire hard disk for MS-DOS
1. To use the entire hard disk for MS-DOS, press Y and Enter. The
screen displays the following message:
2. Press any key to restart the system. You do not have to insert any
MS-DOS diskette is already in drive A.
diskettes because the Your
computer reloads MS-DOS and the screen displays the date
prompt.
3. Enter the date and time if necessary, or just press Enter. The system
creates the MS-DOS partition and the A> prompt reappears.
Before you can use the MS-DOS partition, you must format it with the
SELECT or FORMAT /S command. See the documentation for your
hard disk and the command descriptions in this chapter.
This procedure does not use the entire disk if its capacity is greater than
32MB. To use the rest, run FDISK again to create an extended partition.
No partitions defined.
Press Esc to return to FDISK options
FDISK 4-69
The on the hard disk is measured in cylinders, or tracks.
space available
This menu shows number of cylinders available for a hard disk
the total
partition and prompts you to enter the desired size, in cylinders. Any
part of this total amount that you do not use for the primary partition
can be used for the extended MS-DOS partition or another operating
system.
To accept the default maximum value (770 in this case), press Enter. To
select a different size, type the number and press Enter.
When you create the primary partition this way, FDISK does not
automatically make the MS-DOS partition (When the MS-DOS
active.
partition is active, it loads automatically from the hard disk whenever
The procedure creates the primary MS-DOS partition, but you must
then do the following before you can load MS-DOS from it:
one must have a primary partition; on the second disk, you can create
only an extended partition if you wish.
4-70 FDISK
Choose option 2 from the Create DOS Partition menu to create an
extended MS-DOS partition. The screen displays the following:
Partition '
Enter the number of cylinders you want to be the size of the extended
partition and press Enter. maximum size you can make the
(The
partition is the number displayed as the maximum space available for
the partition.) The screen then displays the status of your primary and
extended partitions, for example:
FDISK 4-71
See the instructions below to create logical drives in the extended
partition.
You can make the entire partition one logical drive if it is less than
32MB in size or you can divide it into two or more drives. This is useful
if you want to isolate a particular application program and its data files
in a separate logical area (drive) in the partition.
You should assign all the cylinders in the extended partition to a drive
or drives; otherwise you will not be able to access all of the available
disk space in the extended partition.
After you have assigned a drive (or drives) for all of the extended
partition, FDISK displays this message:
4-72 FDISK
Changing the Active Partition
Although your hard disk can have as many as four partitions, only one
can be active. The active partition takes control of your computer each
time you turn it on or reset it. If your hard disk has more than one
partition, you can choose which one should be active.
FDISK 4-73
—The starting cylinder number of a partition.
Start
Press the number of the option you want and press Enter. The next
menu shows the status of the partition you selected — either the primary
or the extended partition. See the instructions below for the option you
choose.
4-74 FDISK
Warning
When you an MS-DOS partition, FDISK deletes any data stored
delete
in that partition, and there is no way to recover that data. So be sure to
back up any data you want to keep before you delete a partition.
After you delete an MS-DOS partition, you will not be able to access
that part of the hard disk. When you want to run MS-DOS, you will
need to insert a system diskette in drive A
you delete the primary
if
partition on the first hard disk. Also, if you want to start a different
operating system in another partition, you must change the active
partition before you delete the MS-DOS partition.
FDISK 4-75
Press ESC to return to the FDISK Options menu.
Note
You cannot delete the primary MS-DOS partition on the first hard disk
if an extended partition exists on the drive.
When you select option 2 from the Delete DOS Partition menu, the
screen displays partition information such as the following:
4-76 FDISK
Press ESC to return to the FDISK Options menu.
Note
You cannot delete the primary MS-DOS partition on the first hard disk
if an extended partition exists on the drive.
option 3 from the Delete DOS Partition menu. FDISK displays a menu
such as the following:
If you are not sure you want to delete the selected drive, press N and
Enter.
If you are sure you want to delete the drive, press Y and Enter. The
information about the specified drive disappears from the screen and the
following message is displayed:
drive deleted
FDISK 4-77
Repeat this procedure for each logical drive you want to delete. Then
press ESC to return to the FDISK Options menu.
4-78 FDISK
Partitioning a Second Hard Disk
If you have a second hard disk, you can use FDISK to partition it and
to perform all of the functions described above on the second hard disk.
When the FDISK Options menu is on the screen, press 5 and Enter to
choose the Select Next Fixed Disk Drive option. (This option is
available only if your computer contains more than one hard disk.)
FDISK changes the current fixed drive number to 2 and displays the
FDISK Options menu. If you plan to use this disk for MS-DOS, follow
the appropriate instructions above.
FDISK 4-79
FIND External (filter)
Purpose
Searches for a specific string of text within one or more files.
Format
" "
[d: [path] FIND [/C] [/N] [/V] string
[ [ d ] [path]
:
filename. .
.]
Description
Use FIND to locate alloccurrences of a particular string in a directory
or in each of the files you specify. FIND is called a filter because it reads
data from a standard input device, filters out the string that matches
your specification, and then writes the result to a standard output
device. For example, it can display the matching line on your monitor
screen.
Switch. Function
file
If you do not enter any switches, FIND displays all lines in the specified
4-80 FIND
Type quotation marks around the string. If the text in your string
contains quotation marks, type two quotation marks for each
occurrence. For example, to find the string She said “Goodbye” and
left, type the following:
type uppercase Y, the program does not find lowercase y. The same rule
applies to spaces and punctuation. If FIND does not locate the string
you specify in the file or files you list, it displays just the filenames on
the screen.
Examples
To display all lines from BOOKl.TXT and BOOK2.TXT (in that order)
that contain the string A Day in the Life, type the following and press
Enter:
To display the filenames on drive B that do not contain the string DAT,
type the following and press Enter:
DIR B: i
FIND /V "DAT"
DIR |
FIND "<DIR>"
FIND 4-81
FORMAT External
Purpose
Formats the disk in the specified drive to accept MS-DOS files.
Format
[d ;
] [path] FORMAT d: [/B] [/S] [/V] [/l] [/4] [/8]
[/N:nn][/T:nn]
Description
Use FORMAT to format your disks for use with MS-DOS.
Note
An easier way to use the FORMAT command is through the MENU
utility. See Chapter 5 for instructions.
Warning
FORMAT erases any data stored on a disk, so be sure to back up any
files you want to keep before you format a disk that contains data.
You can use this command on your hard disk. However, the SELECT
command has been designed specifically for formatting the hard disk.
On a hard disk, formatting destroys the entire contents of any existing
MS-DOS partition, including all subdirectories and files.
You must specify a drive descriptor when you use the FORMAT
command. If you do not, you see this message:
4-82 FORMAT
You can use the following switches with this command. If you do not
use any switches, the default parameters for FORMAT are no system
files, the maximum available sectors, and two sides.
Switch Function
sided use.
FORMAT 4-83
You can use the following switches with the specified disk types:
If you use the /S switch, FORMAT copies the operating system files
from the disk in the default drive to the target disk. If the system does
not have enough memory to store the files, it copies as many as it can
to memory, formats the and then copies the files in memory
target disk,
to the disk. Then it reads the remaining
files from the source disk to
memory and copies them to the target disk. If you have removed the
source diskette from the drive, the program prompts you to reinsert it
before continuing.
Ifyou use the /V switch, FORMAT prompts you for a volume label.
The label can be up to 1 1 characters long, and must comply with the
same rules defining valid file names. You do not need to type a period
( ), however, as you do before an extension to a filename.
.
4-84 FORMAT
FORMAT produces a status report that lists the total disk space,
defective disk space, space allocated to MS-DOS system files, and the
amount of space available for your files.
If your hard disk does not have a volume label, press the Enter key.
Note
If the hard disk has never been formatted or if it has a bad boot sector,
If the volume label you enter does not match the label for the disk, the
screen displays the following message:
After you enter the proper volume label, this message appears:
Cautions
Ifyou have reassigned disk drive descriptors with ASSIGN, cancel the
assignments before you run FORMAT. Otherwise, you could destroy
data.
FORMAT 4-85
Do not use FORMAT with any drives that are currently used in a JOIN
or SUBST command.
Examples
To format a diskette in drive B using all default values, type the
following and press Enter:
FORMAT B
You see the prompt:
Insert the diskette you want to format in drive B and press Enter to
start formatting. As MS-DOS formats the diskette it displays head and
cylinder numbers:
Head: h Cylinder: c
Format complete
xxxxxx bytes total disk space
xxxxxx bytes available on disk
Format another (Y/N)?
Press Y and Enter to format another diskette or press N and Enter to
leave the program.
"Io format a system disk on drive A and specify a volume label, type the
following and press Enter:
FORMAT A.-/S/V
4-86 FORMAT
The system displays the following prompt for the volume label:
To format the hard disk (after you have partitioned it with FDISK), type
the following and press Enter:
FORMAT C:/S/V
The screen prompts you to enter the current volume label (if there is
one) or enter a new one. Then the program formats the hard disk and
copies the system files to it.
FORMAT 4-87
GRAFTABL External
Purpose
Loads a graphics table into memory to enable display of graphic
characters in color/graphics mode.
Format
Id: ] [path GRAFTABL
'] [m] [/STATUS]
Description
If your computer has a color/graphics adapter, you can use the
GRAFTABL command to display ASCII characters with decimal values
above 127 in graphics mode. GRAFTABL loads a special graphics
character generator into memory so you can access these characters
when you are using special application software or a programming
language such as BASIC. You do not need to load this table if you are
not in graphics mode.
If you also include one of the following code page numbers, you can
access characters in that international language character set:
The default is 437 (the United States). After you enter the GRAFTABL
command, the screen displays a message such as the following:
To display the number of the code page currently being used, include
the /STATUS switch.
4-88 GRAFTABL
Once it is loaded, GRAFTABL remains in memory until you turn off or
reset the computer. You can access any of the graphics or national
language characters through the application software or programming
language you are using.
Load the graphics table only once each session. If you give the
command a second time, the following message appears:
Examples
To load the graphics character table, type the following and press
Enter:
GRAFTABL
To load the French Canadian version of the graphics table, type the
GRAFTABL 863
To display the number of the code page currently in effect, type the
following and press Enter:
GRAFTABL /STATUS
GRAFTABL 4-89
GRAPH24 External
Purpose
Enables printing of screen graphics on a 24-pin or laser printer when
you are using a color graphics adapter.
Format
[d:] [pa th]GRAPH24 [/R]
Description
The GRAPH24 command is exactly like the GRAPHICS command
except that itsupports 24-pin printers and you cannot use the /B
switch. If you have a 9-pin printer, use the GRAPHICS command. If
you have a 24-pin printer, use GRAPH24.
You can use GRAPH24 with a laser printer that supports 24-pin mode,
such as the Epson GQ-3500.
4-90 GRAPH24
GRAPHICS External
Purpose
Enables printing of screen graphics when using a color/ graphics adapter.
Format
[d: ] [path] GRAPHICS [priater][/R][/B][/P=port][/LCD]
Description
Use GRAPHICS to make exact printed copies of the image on your
screen on GRAPHICS loads, the
a graphics-compatible printer. After
command prompt reappears on the screen. GRAPHICS is now in
Note
GRAPHICS supports 9-pin printers but not 24-pin printers. If you have
a 24-pin printer, use the GRAPH24 command instead.
Specify any one of the following for printer (if you do not specify a
COLOR4 IBM Color Printer with a red, green, blue, and black
ribbon
GRAPHICS 4-91
You can use the following switches with GRAPHICS:
Switch Function
You need to enter the GRAPHICS command only once after booting
the system. To print the image you see on your screen, just press Shift
Print Screen (or PrtSc). If you have an enhanced keyboard, you need
to press only Print Screen.
Example
To enable graphics, type the following and press Enter:
GRAPHICS
4-92 GRAPHICS
The screen displays this message:
100 SCREEN 1
110 CLS
120 FOR K = 10 TO 50 STEP 5
130 CIRCLE (100,100), K
140 NEXT K
Run the program. To print what is displayed on the screen, simply press
Shift Print Screen.
GRAPHICS 4-93
HDCACHE External
Purpose
Enhances the performance of a hard disk by storing the location and
contents of requested sectors in a reserved part of memory.
Format
[d: ] [pa ti}] HDCACHE [Cjj] [En]
Description
HDCACHE makes your hard disk work more efficiently. Each time you
request a new HDCACHE records the sector location of the in
file, file
a special part of the computer’s memory (in the cache buffer) so the next
time you request that file, MS-DOS finds it faster.
64KB.
Note that you do not need to type the / when entering these switches.
Use the C switch if you want to change the size of the cache buffer in
the standard memory area. The default size is 64KB. The buffer size can
be up to the amount left in memory, less at least 64KB.
4-94 HDCACHE
Use the E switch if you want the cache buffer to be in the extended
memory area. The maximum size for this buffer depends on the size of
the extended memory.
The cache buffer is allocated by tracks, so if you enter a size that is not a
multiple of the track HDCACHE rounds the number up to the
size,
next track size. The size of a track usually 7.5KB, which HDCACHE
is
treats as 8KB.
You can use both switches if you want to create a buffer in both
memory areas to get the most memory for the cache buffer.
After you load HDCACHE the first time, the program displays the
allocated size of each cache buffer. You can load the program only once
each time you load MS-DOS. However, you can use the command
again, without affecting the current buffers, to display the following
information:
• The total number of read requests whose sectors have been read
from the cache buffer*
• The total number of read requests whose sectors have been read
from the hard disk
• After displaying this information on the screen, HDCACHE resets these values to
zero.
The program also displays this message when you enter the command
subsequent times:
HDCACHE 4-95
Caution
Do not use HDCACHE with the IBM version of the VDISK program.
If you do, you will destroy the contents of the extended memory.
Examples
"Io create a 128KB buffer in the standard memory area, type the
following and press EntGr:
HDCACHE C128
To create a buffer that is 32KB in the extended memory area, type the
following and press Enter:
HDCACHE E32
To display information about the existing buffer(s), type the following
and press Enter:
HDCACHE
4-96 HDCACHE
HELP External
Purpose
Provides helpful information on MS-DOS commands.
Format
[d: ] [path} HELP [ command ...]
Description
Use the HELP command to ask for information on any MS-DOS
command or utility progam. This help function provides useful
information but is not intended to be a substitute for this manual.
Type HELP to see a menu of all the commands. Type HELP followed
by the name of one or more MS-DOS commands, each separated by a
space, to bypass the menu and display the messages for each command.
At the bottom of the menu, you see this prompt:
If you type HELP and one or more command names on the command
line, the help information for the command appears. Press ESC to
first
see the help information for the next command. When you press ESC
after viewing the information for the last command, MS-DOS redisplays
the command prompt.
HELP 4-97
JOIN External
Purpose
Joins % drive and all its files to a directory on another drive.
Format
[d:] [path] JOIN [dl: d2:\ directory]
[d: ] [path] JOIN d:/D
Description
This command joins a drive to a directory on a different drive to create
a single directory structure. With JOIN you can refer to all directories
on a specific drive with one path name.
When using application software that does not take advantage of the
MS-DOS file handling features, you may have to change the current
drive in order to access files from a different drive. For example, to use a
separate hard disk or RAM disk for storing files, you must log on to
these drives before they can be used. Using the JOIN command
eliminates the need to change the current drive.
Once you join the two drives, you cannot access the first drive directly.
Use the /D switch to disconnect a join. For example, to restore the first
drive, type the following and press Enter:
JOIN d: /D
You cannot disconnect a join if it is the current directory.
4-98 JOIN
To list all drives that are currently joined, type JOIN only.
Cautions
Do not use JOIN when the drive being joined is part of a SUBST or an
ASSIGN command.
Do not use BACKUP DISKCOMIJ DISKCOPY, FORMAT,
RESTORE, or SELECT while a JOIN is in effect.
Example
Assume these directory structures exist for drives A and D:
A:\ D:\
l l
DOCl.TXT DOC2.TXT
JOIN D: A:\DRIVED
Now, anytime you refer to the directory \DRIVED\FILES 1 on drive
A, all disk activity takes place in FILES 1 on drive D without having to
change the current drive.
D0C1 TXT
D0C2 TXT
To cancel the effect of the JOIN command on drive D, type:
JOIN D: /D
JOIN 4-99
KEYB External
Purpose
Loads a different keyboard layout into memory.
Format
[d:] [path] KEYB [xx[,[^],[[d:][path]KEYBOARD.SYS]]]
Description
Use the KEYB command to replace the default keyboard layout in your
computer’s memory. This you type the characters that are in these
lets
Keyboard
Country /language code KEYB conn
Australia US KEYB US
Belgium BE KEYB BE
Canada (English) US KEYB US
Canada (French) CF KEYB CF
Denmark DK KEYB DK
Finland su KEYB SU
France FR KEYB FR
Germany GR KEYB GR
Italy IT KEYB IT
Latin America LA KEYB LA
Netherlands NL KEYB NL
Norway NO KEYB NO
Portugal PO KEYB PO
Spain SP KEYB SP
Sweden sv KEYB SV
Switzerland (French) SF KEYB SF
Switzerland (German) SG KEYB SG
United Kingdom UK KEYB UK
United States US KEYB US
4-100 KEYB
Appendix C shows the layouts for these different keyboards. For some
keyboards, you need to press dead keys to add an accent or umlaut to a
character. (See Appendix C.)
include the appropriate code page number in place of the nnn in the
command: 437, 850, 860, 863, or 865. See Chapter 9 and the CHCP
command in this chapter for more information on code page switching.
If you omit this number, KEYB uses the default code page.
You use the MODE command to prepare a code page required by the
new keyboard layout. The keyboard layout and code page must be
compatible. If the keyboard and display do not match, character keys
may not be translated correctly into the correct code page, and
characters may be displayed incorrectly. The following table shows the
valid keyboard/code page combinations.
SG
850 UK, FR, GR, IT, SP DK, NL, SU, NO, PO, SV, SF,
SG, CF, BE, LA, US
860 PO
863 CF
865 NO, DK
The KEYB command creates translation tables for each code page that
has been prepared at the time you give the KEYB command and
enables the code page you have requested. you want to use a code
If
page that is not in the list of prepared code pages, you need to prepare it
first (with MODE) and then give the KEYB command. (See the
description of MODE later in this chapter.)
Once you load a particular keyboard into memory, it remains there
until you reset or turn off the computer or until you enter the
command to return to the default keyboard. You can switch back and
KEYB 4-101
forth between the default keyboard and the alternate layout with the
following commands:
Note
If you have created your own keyboard, specify its name in place of
KEYBOARD.SYS.
If you use another keyboard layout often, you may want to include the
KEYB command in your AUTOEXEC.BAT file.
If you use the SELECT command to format a disk, MS-DOS creates a
system disk that automatically initiates the keyboard driver you specify.
The KEYB command sets the following exit codes which may help you
perform error-detection batch processing:
0 Normal termination
4-102 KEYB
3 KEYB could not create a keyboard table in resident memory
6 KEYB could not find the translation table for the selected code
page in the resident keyboard table
Cautions
Because this command changes the keyboard layout, remember that
some keys may be in a new position or not exist at all after loading this
command. See Appendix C for the keyboard layouts.
Example
To use the German keyboard, type the following and press Enter:
KEYBGR
KEYB 4 - 103
LABEL External
Purpose
Creates, displays, changes, or deletes a volume label on a disk.
Format
[d:] [pa th~\ LABEL [ d:][volumelabel ]
Description
Use LABEL to identify your disks. The label can be up to 11 characters.
Do not use any of the following symbols as part of your disk label:
If you type LABEL only and do not specify a volume label, you see this
prompt:
To delete a volume label, press Enter only. You see the prompt:
Cautions
Do LABEL with drives that have been assigned
not use a path name
with SUBST or another drive name with ASSIGN.
This command may not work in a network environment.
4-104 LABEL
Example
To change the volume label of the diskette in drive B to AP DATA,
type the following and press Enter:
LABEL B: AP DATA
LABEL B:
The screen displays the following:
Press Y and Enter if you want to delete the label or press N and Enter
to leave the label.
Purpose
Creates (makes) a new subdirectory.
Format
MKDIR [d:]pata
MD [d:]pa£b
Description
Use MKDIR to create a subdirectory under the current directory or the
specified directory. When you are in the root directory or one of its
subdirectories, you can use MKDIR to create new subdirectories. If you
do not specify a drive, the current drive is assumed. If your path starts
with a backslash ( \ MS-DOS ), starts its directory search with the root
directory. If you omit the backslash, MS-DOS starts with the current
directory.
•
“ /
M ] : ! < > + = ;,?*
You can any number of subdirectories provided disk space
create is
A directory can include file and subdirectory names that also appear in
other directories. Therefore, files having the same name can be stored in
separate directories.
4-106 MKDIR
Examples
To create a subdirectory called PROGRAMS in your root directory (on
MKDIR \ PROGRAMS
To create a subdirectory named BASIC, under a directory named
PROGRAMS on drive B, type the following and press Enter:
MKDIR B:\PROGRAMS\BASIC
If your current directory is PROGRAMS, you only need to type:
MD BASIC
MKDIR 4-107
MODE External
Purpose
Sets the way a printer, monitor, or serial port operates and prepares and
controls code page switching.
Format
Parallel printer mode:
[ ,[databits][,[stopbits][ , [P]]]]]
Display modes:
4-108 MODE
You can use the following abbreviations in the code page commands:
CP instead of CODEPAGE
PREP instead of PREPARE
SEL instead of SELECT
REF instead of REFRESH
STA instead of STATUS
Description
Use this command to set or change the following aspects of your
system’s operation:
• Serial port selection, baud rate, parity, data length, and stop bits
Note
For a simpler method of using the MODE command, you can run the
MENU program and select the Mode Settings option. See Chapter 5 for
instructions.
MODE 4-109
Device Command/identifiers
Printer MODE LPTn: (parameters)
• Select the number of lines to print per vertical inch, either six or
eight
Type the MODE command first. Then enter a space, the device identifier,
and a colon. After the colon, enter the number of characters per line
(80 or 132), a comma, then the number of lines you want to print per
inch (6 or 8). If you want your printer to retry printing when it
encounters an error, type another comma and P at the end of the
command (optional). Always state the first two parameters when using
[P even if you want them to remain at their default values.
]
4-110 MODE
At the end of the command line, press Enter. As MS-DOS activates
each parameter, a message appears. Once MODE is complete, the
command prompt returns.
The serial port device selection is limited to COM1: unless you install
other serial port option cards.
Type the MODE command name, a space, the device identifier, and a
colon. You must specify the COM port and baud rate. Include each of
the parameters after baud rate only if you want to change them from
the default values. Separate each parameter from the next with a
comma.
Table 4-1 shows the options for each parameter, the default value
MS-DOS assumes, and how to enter each one on the command line.
MODE 4-111
Table 4-1. MODE options
Parameter Options Entry Default
Port 1, 2, 3, or 4 COM1:, COM2:, none
COM3:, COM4:
Baud 110 150 110, 150, etc. none
300 600
1200 2400
4800 9600
19200
Parity odd, even, O, E, N E
none
Databits 7 or 8 7, 8 7
Stopbits 1 or 2 1,2 1 (2 if baud rate
is 110)
Error retry Yes or No P or blank blank
When you select the retry option, MODE becomes resident in memory.
Press Ctrl C to stop a continuing loop of retries.
Once you type the necessary parameters on your command line, press
Enter. MODE loads and then makes any setting changes to your serial
port. After each change occurs, a message appears on your screen.
You can leave a parameter out because you want the default value as
part of the setting, but you must enter a comma in its place. For
example, to change only the databits parameter and accept the default
settings for parity and stopbits, use the following format:
4-112 MODE
MS-DOS accepts the following device identifications (logical devices) for
parallel and serial output:
LPT1: COM1:
LPT2: COM2:
LPT3: COM3:
COM4:
Unless you install special option cards to enable additional output,
devices LPT2:, LPT3:, COM2:, COM3:, and COM4: are not available.
Although they exist logically in the operating system, the physical
connections (to other printers or a second serial port) do not exist unless
a batch file, with a MODE command before and after it, the setting
changes occur automatically.
MODE 4-113
To change your monitor display, use the following format:
Type the MODE command name first and enter a space. You must enter
the displaymode parameter, but the right/left alignment and test pattern
parameters are optional.
Displaymode Description
The standard mode is BW80. If you have a color monitor, then CO80 is
standard.
You can use the alignment parameters (L and R) to shift the screen image
one column to the left or right. To move more than one column, you
need to repeat the command for each column you want to move. If you
add the test parameter ( T ) after the L or R, a test line appears on the
screen asking if you see the leftmost or rightmost character in the line. If
you enter N the line moves one column in the appropriate direction
,
and the question appears again. When the image is aligned as you want
it, type Y. Use the test parameter with a color monitor
only. L, R, and
T are valid only with a EGA adapter.
At the end of the command line, press Ent6f. MODE loads, your
and the command prompt returns. Your screen
display format changes,
doesn’t show an example screen pattern unless you include the test
parameter.
4-114 MODE
Setting the code page
You must use the MODE command to prepare and select a code page
before you can use that keyboard layout with the device you select. Use
the mode command to:
• Select which code page to use with which device. This activates the
code page so you can use it on the designated device.
Note
Ifyou do not have an EGA adapter, you will not be able to display
certain code pages on your monitor. If you do not have a printer that
supports the code page you select, you will not be able to print all
PREPARE — Before you can prepare a code page, you must have used
the DEVICE command in the CONFIG.SYS file to activate the device
driver(s) for which you want to use code page switching.
To prepare one or more code pages, use one of the following command
formats:
MODE 4-115
Type the MODE command, a space, the name of the device, a space,
then CP PREP (or CODEPAGE PREPARE) followed by an equal sign.
Use the first command format if you are preparing only one code page;
use the second format if you are preparing more than one.
The d:, path, and filename identify the Code Page Information file that
MS-DOS should use to prepare a code page for the device specified.
You can include only one device in a MODE command. you want to
If
You can enter one or more of the following code page numbers in the
command:
To include more than one code page, list the numbers within
parentheses and separate them with commas. For example, to prepare
437, 850, and 863, you would enter the code page part of the command
as follows:
You must enter at least one code page number in the command.
4-116 MODE
Choose one of the following filenames for the code page information
file:
Be sure to include the proper pathname so MS-DOS can find the file.
/STATUS — Use the /STATUS switch if you want to display the code
pages currently prepared and selected for a device:
MODE 4-117
Actually, /STATUS is optional; the following command does the same
thing:
MODE device CP
Examples
To set your printer to print 132 characters per line, 8 lines per inch, type
the following and press Enter:
To see the effect of the MODE command on your color monitor, set the
screen to display 40 columns wide instead of 80. Type the following and
press Enter:
MODE 40
MODE loads, changes the format of your display, then returns the
command prompt to the screen. You can see that the characters are
now twice as wide. Use the command MODE 80 to restore normal
width display.
4-118 MODE
To change the databits parameter for your serial port, type the following
and press Enter:
To prepare the Canada — French and Nordic code pages for the monitor
(CON) using the code page information file EGA.CPI, type the
following and press Enter:
MODE 4-119
MORE External (filter)
Purpose
Displays long data listings one screen at a time.
Format
[d:] [path] command \
[d: ] [path] MORE
Description
When you specify the MORE command, MS-DOS reads the input and
displays one screen of information at a time. The screen displays the
following message on the last line:
-- MORE —
Press any key to display the next screen of information. Repeat this
process until you have seen all the input data. MORE is useful for
looking at a list of files in a large directory or viewing a long file.
Examples
To display the file MYFILES.TXT (on the default drive) one screen at a
time, type the following and press Enter:
TYPE MYFILES.TXT |
MORE
To display the directory of files (on the default drive) one screen at a
time, type the following and press Enter:
DIR |
MORE
To display the file LONGLIST on drive A one screen at a time, type the
following and press Enter:
4-120 MORE
NLSFUNC External
Purpose
Provides support for code page switching.
Format
[d:] [path] NLSFUNC [[d:] [path] filename]
Description
The NLSFUNC command enables support for extended country
information andlets you use the CHCP command to select a code page
(national language character set) for any device that supports code page
switching. NLSFUNC also lets you select a country information file
other than the one specified in your CONFIG.SYS file. Be sure to read
Chapter 9 for complete information about code page switching.
You use the CHCP command (described in this chapter) to select a code
page for all devices defined with code page switching support. But you
must first NLSFUNC command into memory before giving the
load the
CHCP command. You may want to include the NLSFUNC command
in your AUTOEXEC.BAT file.
Examples
To enable code page switching using the country information file in
NLSFUNC
To enable code page switching using the country information file named
COUNTRY2.SYS in the DOS directory on drive C, type the following
and press Enter:
NLSFUNC 4-121
PATH Internal
Purpose
Sets a search path for programs and batch files that are not in the
current directory. Once you have used this command, you can run
programs in other directories without specifying their pathnames.
Format
PATH [[<2:]patM[; [d:]path2 . .
.]]
PATH;
Description
Use PATH MS-DOS must search to
to identify the directories that
locate external commands when they are not in the current directory.
MS-DOS searches the directories in the path (in the specified order and
on any drive) until it finds the command to be executed. PATH stays in
effect until you reset the system or set another path.
Use the format PATH pathl ; path2 ; pathj to specify several paths
by separating each path with a semicolon. MS-DOS searches the paths
in the order you specify
MS-DOS searches the specified path only for command files (those
having .COM, .EXE, and .BAT extensions) and then only when
attempting to execute them. The current directory is not changed by
this command.
4-122 PATH
Examples
To tell MS-DOS to search your \DOS\MENU directory (on drive C)
for external commands, type the following and press Enter:
PATH C:\D0S\MENU
To search this path and two others, type the following and press Enter:
PATH
If the above paths have been entered, the screen displays the following:
To have MS-DOS search only the current directory and not the
previously specified path or paths, type the following and press Enter:
PATH;
PATH 4-123
PRINT External
Purpose
Prints a text file (or set of files) on a printer.
Format
[d: ] [patd]PRINT [/D: device] [/E: buffersize]
[/\J: busy tick] [/Mimaxtick]
[/S: timeslice]" [/Q: q ueuesize]
[/T] [/C] [/P]
[[d:] [path] [ filename ] . .
.]
See the example section for farther information on the placement of the
switches.
Description
Use PRINT to output files to a printer while you continue other
processing with your computer. The files to be printed are stored in a
print queue.
/B ibuffersize Sets the size in bytes of the print buffer (the default is
/M.:maxtick Specifies the number of clock ticks that PRINT can use
to print a character. The value can be from 1 to 255
clock ticks; the default is 2.
4*124 PRINT
Switch Function
You can enter the /D, /B, /U, /M, /S, and /Q switches only the first
time you give the PRINT command after starting MS-DOS. Once you
set these switches, they remain in effect until you turn off or reset the
computer.
If you do not specify the device name (/D), the first time you use the
PRINT command, you see this prompt:
The files are queued for printing in the order you enter them. Any files
in the print queue must remain unaltered on the disk in the specified
drive until printing is complete.
PRINT 4-125
You can use wildcard characters in the filenames. Also, you can specify
more than one filename, each with the appropriate switches. Each print
queue entry can contain a maximum of 64 characters, including the
drive descriptor.
After a file is entered in the print queue, you can change the current
directory without affecting the print status of files in the queue.
Caution
If you have reassigned disk drive descriptors with ASSIGN, cancel the
assignments before you run PRINT.
Examples
To set the size of the print buffer to 800 bytes, type the following and
press Enter:
PRINT /B:800
To empty the print queue, type the following and press Enter:
PRINT /T
Note
Each switch affects the file before it and all the files after it until the file
before the next switch. In the last example, the /C switch affects
TEMP1.TST and the /P switch affects both TEMP2.TST and
TEMP3.TST.
To remove these three files from the print queue, type the following and
press Enter:
4-126 PRINT
PROMPT Internal
Purpose
Changes or resets the MS-DOS command prompt.
Format
PROMPT [ string]
Description
Use PROMPT to change the MS-DOS system prompt from A) to any
Whatever you specify for the string parameter
string of characters.
becomes the command prompt until you specify a different prompt, or
reset or turn off the computer.
Specify this
character: To get this in your prompt:
Enters a carriage return/line feed sequence
(underscore) (goes to beginning of a new line)
PROMPT 4*127
Specify this
character: To get this in your prompt:
Examples
To set the default drive letter prompt without any symbol, type the
following and press Enter:
PROMPT $n
The screen displays A (if A is the default drive).
To set the prompt to the current drive and directory followed by the >
PROMPT $p$g
If your current directory is WORD\WORK on the B drive, the screen
displays the following:
B:\W0RD\W0RK)
To set the prompt to include a message such as READY as well as the >
PROMPT READY$g
The screen displays:
READY)
4-128 PROMPT
To set a two-line prompt with the time and date, type the following and
press Enter:
The screen displays the following prompt with the current time and
date:
Time = 13:05:23.88
Date = Thu 3-24-88
If you have an ANSI escape sequence driver, you can set the prompts in
reverse video mode and return to normal video mode for other text.
Type the following and press Enter:
PROMPT $e[7m$n:$e[m
To reset the prompt to the default drive descriptor, type the following
and press Enter:
PROMPT
The screen displays the default command prompt, for example:
B>
PROMPT 4-129
RECOVER External
Purpose
Recovers a file or an entire disk containing bad sectors.
Format
[d: ] [path] RECOVER [d: ] [pa th] filename
Description
Use RECOVER to check individual files for damage and to reconstruct
the directory of a damaged disk. If a sector is bad, you can recover
either the file containing that sector or the entire disk. When you
recover a file, any bad sectors are deleted from the file. Recover the
entire disk if the bad sector is in the directory.
the drive containing the disk). When you recover an entire disk, all
Cautions
Ifyou have reassigned disk drive descriptors with ASSIGN, cancel the
assignments before you run RECOVER. Otherwise, the program does
not work properly.
Examples
To recover the file APFILE on drive A, type the following and press
Enter:
RECOVER A: APFILE
4-130 RECOVER
The file APFILE is read sector-by-sector and bad sectors are skipped.
To recover the contents of the entire disk in drive B, type the following
and press Enter:
RECOVER B:
RECOVER 4-131
RENAME Internal
Purpose
Renames the specified file or files.
Format
RENAME [d:][path]filenamel filename2
REN [d: ] [path ] filenamel filename2
Description
Use RENAME to change the name of one or more files. You change
the name of the old file to that of the new file. You can type the
command name either as RENAME or REN.
You cannot specify a drive or path with the new filename. The file
You can use the wildcard characters * and ? to rename a group of files.
When you use the ? wildcard character in the filename, the
corresponding character positions do not change.
You cannot rename a file using the name of an existing file in the
directory.
Examples
To change MYFILE.TXT to YOURHLE.DOC on the current drive,
type the following and press Enter:
4-132 RENAME
REPLACE External
Purpose
Selectively replaces or adds files including subdirectories.
Format
[d: ] [path] REPLACE ^path'll filename^
\_dl:
ld2 ][path][/A][/P][/R][/S][/W]
Description
Use REPLACE to replace on the target disk with files of the same
files
name from the source disk. You can also add files, copying them from
the source to the target.
Note
An easier way to use the REPLACE command is through the MENU
utility. See Chapter 5 for instructions.
In the format above, dl is the source and d2 is the target. You must
specify at least a drive, path, or filename for the source.
For the target, you can specify a drive or path, but you do not specify a
filename. If you omit the target, the specified source files replace files in
the current directory of the default drive.
Switch Function
REPLACE 4-133
Switch Function
REPLACE sets the following exit codes, which may help you perform
error-detection batch processing:
5 Access denied
8 Insufficient memory
15 Invalid drive
Examples
To replace existing files in all subdirectories on drive C with files from
drive A, type the following and press Enter:
REPLACE A: C:\W0RK /A
4-134 REPLACE
To replace the file LONG.LST on drive B with the file on the source
diskette in drive A and have the system wait for you to insert a diskette,
type the following and press Enter
REPLACE A: LONG.LST B: /W
The screen displays the following:
Purpose
Restores files copied with the BACKUP command.
Format
[d:] [path RESTORE '] dl [d2: ] [path] [file^aTTje] [/M]
:
Description
Use RESTORE to restore files that have been copied with the
BACKUP command. (BACKUP creates specially-formatted files that
are not usable until you restore them with the RESTORE command.)
Note
An easier way to use the RESTORE command is through the MENU
utility. See Chapter 5 for instructions.
In the command format above, dl is the source drive, the one that
contains the BACKUP files, and d.2 is the target drive to which you
want to restore the files.
For the source, specify only the drive that contains the backup files. For
the target, you can specify a drive, path, and/or filename. If you omit
the target, the backup files are restored to the current directory of the
default drive. If you specify a path for the target, you must restore the
files to the same directory they were in when BACKUP copied them.
ignored.
4-136 RESTORE
Switch. Function
Note
The date and time formats depend on the COUNTRY code selected.
RESTORE prompts you to insert the source diskettes in the order they
were backed up with BACKUP If you insert the wrong diskette,
RESTORE prompts you to insert the next diskette until you insert the
correct one.
the files that match the wildcard files; then it prompts you to insert the
next diskette.
If you are sharing files, you can restore only those files that you
normally can access. If you try to restore a file that you are not
permitted to access, the screen displays the following message:
PATHNAMENFILENAME EXT .
RESTORE 4-137
RESTORE sets the following exit codes which may help you perform
error-detection batch processing:
Caution
Do not use RESTORE while the ASSIGN, JOIN, or SUBST
commands are in effect.
Examples
To restore all files including files in subdirectories from backup diskettes
on drive A to the hard disk (drive C), type the following and press
Enter:
RESTORE A: C:*.* /S
To restore FILEIT.DOC from a backup diskette in drive A to drive B,
type the following and press Enter:
RESTORE A: B: FILEIT.DOC
To restore files that have a .DOC extension from backup diskettes in
drive A to drive C, type the following and press Enter:
RESTORE A: C:*.D0C
To restore all files from backup diskettes in drive A to drive C, and have
the system prompt you if any files on drive C have changed since the
last BACKUP or if any files are marked read-only, type the following
and press Enter:
RESTORE A: C:/P
4 - 138 RESTORE
RMDIR Interned
Purpose
Removes (deletes) an empty subdirectory.
Format
RMDIR [d:]path
RD [d: Jpath
Description
Use RMDIR to remove an empty directory from a directory tree. The
directory must be empty except for the and .. shorthand symbols.
.
Therefore, you must delete all files before you delete the directory. (You
can do this by typing DEL * . * when you are in the directory you want
to delete.)
When you specify a path, RMDIR removes the last directory name in
the path. If you do not specify a drive, the current drive is assumed.
Cautions
Be careful when removing a directory while a JOIN or an ASSIGN is in
effect. You cannot remove a directory if it has been substituted
(SUBST).
Example
To remove the \OUT subdirectory located under the ELECMAIL
directory, which is in the root directory (on the current drive), type the
following and press Enter:
RMDIR \ELECMAIL\OUT
RMDIR 4-139
SELECT External
Purpose
Formats and installs MS-DOS on a new disk with the country
information and keyboard layout you select.
Format
[d:] [path] SELECT [dl: d2:[path']'] nnn xx
Description
Use SELECT to create a system disk that configures your system for a
specificMS-DOS country and international keyboard layout. All
system disks distributed by Epson automatically configure the system for
the country of sale. This means you need to use SELECT only when
You can also use SELECT to format your hard disk and prepare it for
MS-DOS. At the same time, SELECT can also copy
auto-booting all
dl, you must also specify d.2, the target. If you do not specify any drive,
SELECT assumes drive A for the source disk and drive B for the target
disk. On a single drive system, you are prompted to exchange the disks
at the appropriate time.
The path is the name of the directory on the target disk in which you
want to store all MS-DOS command files. SELECT automatically
creates this directory after it formats the target disk.
4-140 SELECT
As part of the SELECT command, you must include a country and
keyboard code (shown above as nnn xx). The country code allows you to
choose how the computer handles country-dependent information. You
can choose the formats for the following types of displays (the formats in
• Decimal separator ( .
).
Use 001 US for nnn xx if you want to use the standard United States
format and keyboard layout. Table 4-2 lists the acceptable values of nnn
and xx.
United
Country USA France Germany Kingdom Italy Spain
Date separator — /
— / /
Time separator
Currency format 00 03 00 00 01 03
Currency decimal
places 2 2 2 2 0 2
Time format (hours) 12 24 24 24 24 24
Data list separator > » i i » \
SELECT 4*141
A CONFIG.SYS file is created on the target disk with the
COUNTRY=xxx ccc, d:\patlj\COUNTRY.SYS command. (The
ccc is the code page number.) An AUTOEXEC.BAT file is created on
the target disk with the following commands:
PATH Y; [\path; ]
KEYB xx ccc [d:\path] KEYBOARD. SYS
ECHO OFF
CLS
DATE
TIME
VER
For hard disks, the PATH command includes the target drive letter. If
Warning
The SELECT procedure destroys all on your destination diskette
data
or the hard disk’s MS-DOS partition.Use SELECT only on a blank
diskette or on a hard disk that does not have files stored on it.
SELECT A: B: 001 US
4-142 SELECT
The screen displays this message:
4. Just press Enter to format the diskette. (You already have inserted a
new diskette in drive B.) MS-DOS begins formatting the diskette.
The screen continuously displays the changing head and cylinder
numbers. Besides formatting the diskette, MS-DOS also copies the
operating system files to the disk. When the procedure is complete,
the screen displays the following:
Format complete
System transferred
The screen now displays disk space information and then displays
the following message:
complete.
SELECT 4-143
Using SELECT on a hard disk
1. Insert your system diskette containing the SELECT program in
drive A.
SELECT A: C: 001 US
The screen displays this message:
3. If your hard disk is new and has no files stored on the DOS
partition, press Y. Or press N to cancel the procedure. If the hard
dis k contains files, see the note at the end of these instructions.
Besides formatting the hard disk partition, MS-DOS also copies the
operating system files to the hard disk. When the procedure is
complete, you see the following:
Format complete
System transferred
Volume label (11 characters, ENTER for
none)
4-144 SELECT
5. Ifyou want to label the hard disk, type a name of up to 11
characters and press Enter. If you do not want to name the hard
disk, do not enter any characters. Just press Enter. The screen first
displays disk space information and then displays the following
message:
When all the files are copied, the A> prompt reappears. The
SELECT procedure is complete.
Note
If the hard disk contains files in the DOS partition, the screen displays
this message:
Enter the volume label currently assigned to drive C and press Enter. If
you do not enter the proper volume label, the screen displays this
message:
Invalid Volume ID
Format failure
The A> prompt appears on the screen. Type C : and press Enter. Then
type VOL and press Enter. The screen displays this message:
SELECT 4-145
Example
To use SELECT to configure your system for use in the United
Kingdom, type the following and press Enter:
SELECT A: C: 044 UK
MS-DOS creates the CONFIG.SYS file with this information:
COUNTRY=044, 437
ECHO OFF
CLS
DATE
TIME
VER
4-146 SELECT
SET Internal
Purpose
Sets or displays the environment string values in memory.
Format
SET [ name= [ parameter ] ]
Description
Use SET to insert a string into the command processor’s environment
or to set one string equal to another. A copy of the entire series of
strings in the environment is made available to all commands and
applications. SET also displays the current setting of environment
strings.
SET inserts the entire string, beginning with name, into a block of
memory reserved for environment strings. Any lowercase letters in
the name are converted to uppercase letters when added to the
environment (including foreign language characters).. The remainder
of the line is inserted as typed. If the name already exists in the
environment, it is replaced with the new parameter.
If you enter SET only with no name, the current setting of environment
strings is displayed.
If you specify a name but no parameter, SET removes the current setting
of name = parameter from the environment.
Do not use SET to add the PROMPT and PATH commands to the
environment. MS-DOS automatically does this when these commands
are entered.
SET 4-14 7
You can use the SET command in batch processing and define your
replaceable parameters with names instead of numbers. This eliminates
the need to change replaceable parameter names in each batch file.
Examples
To add the string PROG =\LEVEL1 to the environment, type the
following and press Enter:
SET PR0G=\LEVEL1
In the above example, when an application program receives control, it
could search the environment for the name PROG and use the supplied
parameter as the directory name to use for its files.
SET PR0G=
To add the string ABC=xyz to other strings already in the
environment, type the following and press Enter:
SET ABC=xyz
In the above example, you can enter keywords and parameters that
have no meaning in MS-DOS, but can be found and interpreted by
applications designed to examine the environment.
4-148 SET
SHARE External
Purpose
Installs file sharing and locking protection in network situations.
Format
[d:] [path SHARE '] [/F: space] [/L:locirs]
Description
You can use the SHARE command only when networking is active.
You normally include the command in an AUTOEXEC.BAT file to
install shared files. See the manual for your networking software to learn
Use the /F switch to allocate file space (in bytes) for the area MS-DOS
uses to record file sharing information. The space required for each
open file is the length of the full filename plus 1 1 bytes. The default
value is 2048 bytes.
The /L switch allocates the number of file locks. The default is 20 locks.
Once you use the SHARE command in an MS-DOS session, all read
and write requests are checked by MS-DOS against the allowed number
of FCBs specified in your CONFIG.SYS file. If you try to load SHARE
again, the following message is displayed:
Example
To reserve 1500 bytes for file sharing and allow for 10 locks, type the
following and press Enter:
SHARE /F:1500/L:10
SHARE 4-149
SORT External (filter)
Purpose
Sorts data from an input device and then writes it to the output device,
such as a screen, file, or printer.
Format
[d:][patii] SORT [/R ~\[( filename [> filename]] [/+n]
Description
SORT is a filter program that reads input from your keyboard (or
standard input device), sorts the data, and then writes it back to your
You can use SORT to arrange a file in ASCII code order. This means
that numbers come before letters and that all uppercase letters come
before all lowercase letters. For example, Z comes before a.
You can redirect your input and output to sort the data in a file and
then write the sorted data to a new output file or system device.
Switch Function
Examples
To read the file UNSORT.TXT, reverse the sort, and then write the
output to a file named SORT.TXT, type the following and press Enter:
DIR |
SORT /+14
The result of this command is a directory sorted by file size (represented
in column 14).
You can add the MORE command to SORT To read your sorted
directory one screen at a time, type the following and press Enter:
DIR |
SORT /+14 !
MORE
SORT 4-151
SUBST External
Purpose
Substitutes a drive letter for a pathname.
Format
[d: ] [path] SUBST
Description
Use SUBST to substitute a single drive letter for an entire pathname.
This is you use application programs that do not allow
useful if
pathnames. With these programs, all disk activity must take place in
the current directory. To get around this limitation, use the SUBST
command.
The drive letters you can use with SUBST depend on the value of
LASTDRIVE in the CONFIG.SYS file. If a CONFIG.SYS file does not
exist or does not contain the LASTDRIVE parameter, the default value
Even though you can use any letter in the range, do not use the letter
assigned to an existing drive. If you do use an existing drive, the specifier
will no longer refer to the drive but to the path instead.
4-152 SUBST
Caution
Do not use ASSIGN, BACKUP DISKCOMR DISKCOPY, FDISK,
FORMAT, JOIN, LABEL, RESTORE, or SELECT while a substitution
is in effect.
Examples
Assume the following directory structure for drive D:
D:\
i
i 1
FILES 1 FILES2
i
i 1
BUSINESS PERSONAL
If you are running the application program from drive C (a hard disk), to
access the path D:\FILES1, substituting the letter E, type the following
and press Enter:
SUBST E: D:\FILES1
SUBST E: /D
To access the path D:\FILES2\PERSONAL, substituting the letter F,
SUBST F: D:\FILES2\PERS0NAL
SUBST 4-153
SYS External
Purpose
Copies the system files from the boot-up drive to the specified disk.
Format
[d : ] [path] SYS d:
Description
Use SYS MS-DOS system files from the disk in the boot-up
to transfer
drive (the one from which you loaded MS-DOS) to the diskette or hard
disk you specify. The system files are hidden and do not appear when
you give the DIR command. The SYS command can either update an
earlier version of MS-DOS on a disk or copy the system to a formatted
disk containing no files.
You must include the drive descriptor in the command, and it must be
different than the boot-up drive. Prompts tellyou when to change
diskettes. The destination diskette must be formatted.
Example
To copy the system files from the disk in the boot-up drive to the disk in
SYS B and press
drive B, type : Enter. You see the message System
transferred.
4-154 SYS
TIME Internal
Purpose
Displays or sets the system time.
Format
TIME [hh:mm[:ss[. cc]]]
Description
Use TIME to set a new system time. The file directory then records the
time on all files when you create or modify them.
The TIME command updates the CMOS time if your computer has a
real-time clock.
To display the current system time, type TIME and press Enter. A
message similar to this appears:
Enter the time using numbers only. MS-DOS uses a 24-hour clock, so
the numbers must be in the following ranges:
• hh must be from 00 to 23
• mm must be from 00 to 59
• ss must be from 00 to 59 (optional)
You must separate the hour and minute entries with a colon. If you
enter seconds, precede the number with a colon. If you enter
hundredths of seconds, precede the number with a period.
TIME 4-155
You can change the format of the time display with the COUNTRY
command in your CONFIG.SYS file.
Examples
To set the time for 9:30 in the morning, you can type any one of the
following:
9 : 30:00
9:30
09 30:00
:
09:30
To set the rime for 11:35 in the evening, type either of the following:
23:35
23 35:00
:
4-156 TIME
TREE External
Purpose
Displays the complete subdirectory tree structure of a disk.
Format
[d: ] [path] TREE [d:][/F]
Description
Use TREE to display the complete directory tree of a disk, and,
optionally, list all the files contained in the subdirectories.
For each directory path, TREE displays the subdirectories that branch
from it. TREE displays all files within the directory path if you use the
/F switch.
Type TREE to see the subdirectory structure of the default drive. To see
the subdirectory structure of a different drive, type TREE and the drive
descriptor.
Examples
To see a list of subdirectories, type the following and press Enter:
TREE
Path: \ LEDGER
TREE 4-157
Sub-directories : ACCREC
ACCPAY
SALES
To see a list of all the files in the subdirectories, type the following and
press Enter:
TREE /F
TREE displays a report similar to this one:
Path: \ LEDGER
Sub-directories : ACCREC
ACCPAY
SALES
Files BILLS1
INVOICE. JUN
INVOICE. JUL
To send the output of the above to a printer, type the following and
press Enter:
TREE /F )PRN
4*158 TREE
TYPE Internal
Purpose
Displays the contents of a file on your screen.
Format
TYPE [d:~\[path~\ filename
Description
Use TYPE to display the contents of a file without modifying it. You
must specify a filename and you cannot use wildcard characters. The
specified file is displayed on the screen or the standard output device.
When you use TYPE, data is unformatted. Normal tabs expand and are
shown at every eighth column. Some word processors embed tabs
instead of spaces to save disk space.
The TYPE command is meaningful only with text files. If you give the
TYPE command for a binary file, you may see strange characters that
represent control characters such as bells, form feeds, and escape
sequences.
You can use the MORE command to display the file one screen at a
time, and you can press Ctrl Print Screen to print the file as it
appears.
Examples
To display a file on drive B called EPSON.TXT, type the following and
press Enter:
TYPE TICKET
TYPE 4-159
VER Internal
Purpose
Displays the MS-DOS version number.
Format
VER
Description
Use the VER command to find out which version of MS-DOS you are
Example
To display the version of MS-DOS you are using, type VER and press
4- 160 VER
VERIFY Internal
Purpose
Turns on or off the verify function, which verifies each disk write.
Format
VERIFY [ON]
VERIFY [OFF]
Description
Use VERIFY to verify that all your files are written correctly to disk.
When you specify VERIFY ON, MS-DOS checks that the disk
controller did not err during the disk writing procedure. This command,
however, does not guarantee that the data is correct. MS-DOS normally
performs VERIFY every time you write data to a disk.
When you set VERIFY ON, it remains in effect until you turn it off or
reset or turn off the computer. When VERIFY is on, MS-DOS takes a
little longer when writing to disk.
You can display the current setting of VERIFY by typing VERIFY, with
no parameters.
Examples
To verify that data written to disk is correctly recorded, type the
following and press Enter:
VERIFY ON
To display the current setting, type the following and press Enter:
VERIFY
If you had set VERIFY ON, the screen displays the following:
VERIFY is on
VERIFY 4-161
VOL Internal
Purpose
Displays a disk volume label.
Format
VOL [d:]
Description
Use VOL to display the volume label of the disk in drive d, if the
volume label exists. If you do not specify a disk drive descriptor, VOL
displays the volume label of the disk in the default drive.
Example
To see the volume label of a diskette in drive B, type the following and
press Enter:
VOL B:
4-162 VOL
XCOPY External
Purpose
Selectively copies files and, optionally, subdirectories.
Format
[d:] [pa til] XCOPY [dl:] [path] filename
[d2: ] [pa td] filename ]
C/A] [/E] [/M] [/P] [/S] [/V] [/W]
[/D: date]
Description
Use the XCOPY command to copy:
• Individual files from one disk to another or to the same disk
Note
An easier way to use the XCOPY command is through the MENU
utility. See Chapter 5 for instructions.
XCOPY differs from COPY in that you can copy subdirectories and, if
Use XCOPY instead of DISKCOPY if you are copying all the files from
one disk to another that is not the same media (from a 360KB diskette
to a 1.2MB diskette, for example). Because DISKCOPY copies all the
data by tracks, it cannot copy between two disks that are not the same
format.
In the command format above, dl is the source and d2 is the target. You
must specify at least a drive, path, or filename for the source.
If you do not specify a path for the source diskette, XCOPY starts from
the current directory. The filename can be a single file or a group of files
If you do not specify a path for the target copies, XCOPY copies the
files to the current directory. you do not include a filename, or if you
If
enter # . #, the target copies have the same name as the source files.
You can use the following switches with XCOPY to select exactly which
files to copy and how they should be copied:
Switch Function
/S Copies files from the source directory and from all the
subdirectories below the source directory. /S creates
subdirectories on the target as it copies files, but does
not create a subdirectory that contains no files. To do
this, use /E as well as /S.
/D -.date Copies files whose date is the same as or later than the
specified date. (Date format depends on the
COUNTRY code selected.)
You can give a file a new name with XCOPY by specifying a target
filename that is; different than the source filename.
4-164 XCOPY
You cannot use XCOPY to copy from or to the reserved device names,
CON and LPT1.
XCOPY sets the following exit codes (which you can use in error-
detection batch processing):
3 General error
4 INT 24 error
Examples
To copy all the files in all the subdirectories of drive C to drive A, type
the following and press Enter:
XCOPY 4-165
Chapter 5
Epson Menu Utilities
Introduction 5-3
MENU 5-3
Selecting options from menus 5-6
File Utilities 5-8
Backup Files 5-8
Restore Files 5-11
Replace Files 5-15
Compare Files 5-17
Change File Attributes 5-20
Copy Files/Directories 5-22
SETPRINT 5-41
Options 5-42
XTREE 5-45
Using the menu 5-47
Options 5-50
DIR commands 5-52
File commands 5-60
Function keys 5-70
• XTREE lets you manage your files and directories through a menu
of integrated MS-DOS commands.
This chapter describes how to use the MENU, SETPRINT, and XTREE
programs and also explains how to run XTREEINS if you are having
trouble displaying XTREE on your screen.
MENU
The MENU program displays a menu from which you can select any
MS-DOS command, and it provides simple menus for running certain
complex commands. To run the program, log onto the directory
containing the MENU program or enter the correct pathname and
then type MENU and press Enter. The screen displays this main menu:
EXIT
File Utilities
Disk Utilities
Mode Settings
Help
Enter DOS Command
For example, if you select Backup Files from the File Utilities submenu,
MENU calls up an Epson-created program named SETBCKUE This
program then calls up and runs the MS-DOS BACKUP command, but
it does so by displaying a series of menus on the screen from which you
only one drive or drive B if you have two — and press any key to
continue. Be sure to insert the correct diskette; otherwise, MENU
displays an error message and you will not be able to complete the
operation.
When MENU finishes using the program, the screen prompts you
to insert the diskette for drive A. If you have one drive, replace the
diskette in drive A with the diskette that contains MENU. Press
any key to continue.
If your work sessions involve a lot of disk handling, or you just want to
keep things simple, it’s a good idea to use this convenient menu
program — alone or within a batch file. You can include MENU in a
batch file just like any other MS-DOS command.
The key functions for controlling a menu appear in the bottom part of
every menu screen. For example, the main menu displays the following
prompt:
Use the PgUp and PgDn keys to move this Help Text
up and down one line.
Every menu screen provides help information in this bottom part of the
screen about the option currently selected by the cursor block. If there is
more text than can fit in these five lines, press PgUp to move the help
information up to display more text; then press PgDn if you want to
Check this part of the screen whenever you need information about the
command or what key to press.
BACKUP Utility
When a utility menu is on the screen, you often need to choose one of
two possible parameters for an option by pressing the Enter key. This
switches the selection back and forth between the first choice and the
—
second YES and NO, for example. When the desired choice appears,
press T or i to move the cursor block to another option.
string appears below the menu to show you how this command would
appear if you were typing it at the command prompt. For example, the
command string for a BACKUP command might look like this:
COMMAND STRING > BACKUP C:\*.* A:/S
When you want to leave the displayed menu, just keep pressing T until
the cursor block is on the EXIT option; then press Enter. You can also
Select the option you want from the main menu, then go to the
description of that function below for instructions on using it.
EXIT
Backup Files
Restore Files
Replace Files
Compare Files
Change File Attributes
Copy Files/Directories
Move the cursor block to the option you want and press Enter. Then
follow the appropriate instructions below for that option.
Backup Files
The Backup Files option lets you back up (copy) files from one disk to
another —most typically, from a hard disk to diskettes —to protect your
data. This command is different from the COPY command in that it
copies the files in a condensed format that requires less storage space.
You cannot access files that have been copied with the Backup Files
option, but you can copy them back to the original disk with the
Restore Files option and then access them.
EXIT
Source
Target Drive = :
C: \ LETTERS \ *
Target Drive —Type the letter of the drive containing the target disk
(which is usually A).
Include Subdirectory Files — If you want to include all the files in any
subdirectories that exist in the specified pathname, select YES.
Include Only Modified Files — If you want to include only those files that
have been modified since the last time BACKUP was used on this disk,
select YES.
Add Files Without Replacing—If you want to add only new files, and
not replace those already existing on the target disk, select YES.
MM-DD-YYYY
Enter the date in this format — two digits each for the month and day
and four digits for the year. (The format depends on the COUNTRY
command in your CONFIG.SYS file.) You do not enter the dashes. For
example, for June 22, 1988 you would type:
06221988
Then press Enter to move the cursor back to the large menu. If you
type an invalid date (more than 12 for the month or 31 for the day),
you must reenter the date.
Select A Starting. Time— you want to back up all files that have been
If
HH MM SS
: :
Enter the time in this format (two digits each for the hour, minutes, and
seconds) using the 24-hour clock, but do not type the colons. For
example, to select 9:30 a.m., you would type:
093000
To select 4:15 p.m., you would type:
161500
Then press Enter to move the cursor back to the large menu. If you
type an invalid time (more than 23 for the hour or 59 for the minutes or
seconds), the cursor does not go back to the large menu and you must
reenter the time.
—
Format the Target Disk Before Backup If the disk you are copying the
to has not been formatted, select YES; otherwise, leave the default
files
lists the names of all the backup files, select YES. This creates a file you
can read and print like any text file. The log file is given the default
name of BACKUELOG unless you enter a different one. To change it,
enter a name consisting of up to eight characters for the name (and up
to three characters for the extension, if desired). You can store the log
file on another disk, as long as it is not the target disk. Just specify the
When you have made your selections, move the cursor block down to
START BACKUP and press Enter to begin the backup procedure. If
you have entered any invalid information in the menu, an error
message appears stating what is wrong. Correct the error and select the
START option again.
The screen prompts you to insert backup diskette 01 (the first diskette)
in the target drive and press any key when ready. The program copies
the files from the source disk to the target disk and displays the
filenames on the screen as they are copied.
If the first disk fills up, the screen prompts you to insert backup diskette
02. Follow the prompts on the screen until all the files have been
backed up. Then the screen prompts you to press any key to continue,
and the Backup Files menu reappears. Move the cursor block up to
EXIT and press Enter to return to the File Utilities menu.
Restore Files
Use this option when you want to restore files that have been backed
up with the Backup Files option (or the BACKUP command).
EXIT
Source Drive = :
Target =
NO Include Subdirectory Files
NO Prompt Before Restoring
NO Restore Files Before A Date
NO Restore Files After A Date
NO Include Only Modified and Deleted Files
NO Include Only Files Not On The Target
NO Restore Files Later Than A Time
NO Restore Files Earlier Than A Time
********** START RESTORE
***********
You must enter the appropriate information for the first two items in
this menu. The rest of the options offer a choice between NO or YES;
you can either accept the default (NO) or press Enter to change the
parameter to YES. Use the RESTORE options as follows:
Source Drive—Type the letter of the drive containing the source disk
(the disk containing the files you want to restore to the target disk).
Target—Type the drive letter and pathname on the target disk to which
you want to restore the files from the source disk. You can use wildcards
to identify a group of files. For example, to restore the files to drive C in
the \ SALES directory, you would type:
C: \ SALES \ *
Include Subdirectory Files—If you want to include all the files in any
subdirectories that exist in the specified pathname, select YES.
—
Prompt Before Restoring If you want the program to ask you whether
you want to restore modified or read-only files, select YES. With this
option selected, a prompt appears before each file is copied so you can
choose whether or not to copy it.
MM-DD-YYYY
Enter the date in this format —two digits each for the month and day
and four digits for the year. (The format depends on the COUNTRY
command in your CONFIG.SYS file.) You do not enter the dashes. For
example, for May 16, 1988 you would type:
05161988
Then press Enter to move the cursor back to the large menu. If you
type an invalid date (more than 12 for the month or 31 for the day),
you must reenter the date.
Restore Files After A Date— If you want to restore only those files that
were modified on or after a specified date, select YES. A small box
appears on the right side of the menu with this prompt (for the United
States):
MM-DD-YYYY
Enter the date in this format —two digits each for the month and day
and four digits for the year. (The format depends on the COUNTRY
command in your CONFIG.SYS file.) You do not enter the dashes. For
example, for June 22, 1988 you would type:
06221988
Then press Enter to move the cursor back to the large menu. If you
type an invalid date (more than 12 for the month or 31 for the day),
you must reenter the date.
Include —
Only Modified and Deleted Files If you want to include only
those files on the target disk that have been modified or deleted since
the last time BACKUP was used on this disk, select YES.
Restore Files Later Than A Time— If you want to restore only those files
that have been modified at or after a certain time, select YES. A small
box appears on the right side of the menu with this prompt:
HH MM SS
: :
Enter the time in this format (two digits each for the hour, minutes, and
seconds) using the 24-hour clock, but do not type the colons. For
example, to select 11:00 a.m., you would type:
110000
To select 8:30 p.m., you would type:
203000
Then press Enter to move the cursor back to the large menu. If you
type an invalid time (more than 23 for the hour or 59 for the minutes or
seconds), you must reenter it.
Restore Files Earlier Than A Time— If you want to restore only those
that have been modified at or before a certain time, select YES.
files A
small box appears on the right side of the menu with this prompt:
HH MM SS
: :
Enter the time in this format (two digits each for the hour, minutes, and
seconds) using the 24-hour clock, but do not type the colons. For
example, to select 7:30 a.m., you would type:
073000
To select 6:50 p.m., you would type:
185000
Then press Enter to move the cursor back to the large menu. If you
type an invalid time (more than 23 for the hour or 59 for the minutes or
seconds), you must reenter it.
The screen prompts you to insert backup diskette 01 (the first diskette)
in the source drive and press any key when ready. The program copies
the files from the source disk to the target disk and displays the
filenames on the screen as they are copied. The screen also displays the
date the files were backed up.
After all the files on the first disk have been copied, the screen prompts
you to backup diskette 02, if necessary. Follow the screen prompts
insert
until all thehave been restored. Then press any key to return to
files
the Restore Files menu. Move the cursor block up to EXIT and press
Enter to return to the File Utilities menu.
Replace Files
The Replace Files option replaces a file or group of files on the target
disk with those from the source disk that have the same name, and
displays the filenames on the screen as they are replaced. Yoh can also
add from the source disk that do not exist on the
files target disk. You
cannot replace hidden files or system files.
EXIT
Source =
Target =
NO Add Files Not On The Target
NO Prompt Before Replacing or Adding Files
NO Overwrite Read-Only Files
NO Search All Directories
NO Pause Before Beginning
*********** START REPLACE
************
Source—Type the drive letter, pathname, and filename of the file or files
on the source disk. These will replace matching files on the target disk.
You can use wildcards to identify a group of files. For example, to select
the files from drive A in the \ LETTERS directory that have the
extension .NEW, you would type:
A: \ LETTERS NEW
Target—Type the drive letter and pathname for the files you want to be
replaced on the target disk. For example, to replace the files on drive C
in the \ LETTERS directory you would type:
C : \ LETTERS
Add Files Not On The Target—If you only want to add files from the
source disk that do not exist on the target disk, select YES. This option
adds new files but does not replace existing ones. You cannot select both
this option and the Search All Directories option; choose one or the
other.
Search All Directories—If you want the files on the source diskette to
replace matching files in all subdirectories of the target directory, select
YES. You cannot select both this option and the Add Files Not On
The Target option; choose one or the other.
The program replaces the files on the target disk with those from the
source disk that have the same name, and displays the filenames on the
screen as they are replaced. Then the screen prompts you to press any
key to continue, and the Replace Files menu reappears. Move the cursor
block up to EXIT and press Enter to return to the File Utilities menu.
Compare Files
Use the Compare Files option to compare the contents of two files. This
option shows you exactly what the differences are, and you can output
the results to either the screen or to another file. The files can be either
text files or binary files.
Note
If you just want to know if two files are different and are not concerned
about exactly how, you may want to use the COMP (compare)
command instead. See COMP in Chapter 4 for instructions.
EXIT
Filenamel =
Filename2 =
NO Abbreviate the Output
NO Force a Binary Comparison
NO Ignore the Case of Letters
NO Force a DOS Text File Comparison
NO Display Line Numbers
NO Compress Tabs Only
NO Compress Tabs and Spaces
NO Reset the Internal Line Buffer
NO Specify Number of Matching Lines
YES Output to the Screen :
************ START
F C ************
You must enter the exact filenames for the first two items in this menu.
The rest of the options offer a choice between NO or YES; you can
either accept the default or press Enter to change the parameter. Use
the Compare Files options as follows:
Filenamel—Type the drive letter, pathname, and filename for the first
file.
Abbreviate the Output—If you want to see only the first and last lines
of each section of text that is different, select YES.
Display Line Numbers—This option assigns a line number for each line
of text in the two you want to see the line numbers for the files
files. If
as they are compared, select YES. You cannot use this option if you are
comparing binary files.
—
Compress Tabs Only Normally, the comparison expands tabs to eight
spaces. If you want to compress each tab to only one space, select YES.
Compress Tabs and Spaces—If you want to compress both tabs and
contiguous blank spaces to a single space, select YES.
Reset the Internal Line Buffer— If the program finds more than 100 lines
in the two files that are different, it aborts the comparison. You can use
this option to define a different value for the internal line buffer. First
select YES to reset the buffer. A small box appears to the right of the
menu. Type the number of lines you want to be the maximum amount
of differing lines before the comparison is aborted, from 1 through 999.
Press Enter.
When you have made your selections, move the cursor block down to
START FC and press Enter to begin replacing files. If you have entered
any invalid information in the menu, an error message appears stating
what is wrong. Correct the error and select the START option again.
Use the Change File Attributes option to change the read-only attribute
or archive bit of a file or group of files. When you set a file to read-only,
can be read, but cannot be altered or deleted. The archive bit tells
it
EXIT
Filename
No Change Read-Only Attribute
No Change Archive Attribute
NO Include All Subdirectory Files
******* START ATTRIB
******
B : \ SALES \ . 87
To turn the read-only attribute on, move the cursor to Set. To turn the
attribute off, move the cursor to Cancel. Select No Change if you don’t
want to change anything. Press Enter.
To turn the read-only attribute on, move the cursor to Set. To turn the
attribute off, move the cursor to Cancel. Select No Change if you don’t
want to change anything. Press Enter.
Include All Subdirectory Files — If you want to include all files in any
subdirectories of the specified filename, select YES.
When you have made your selections, move the cursor block down to
START ATTRIB and press Enter to begin. If you have entered any
invalid information in the menu, an error message appears stating what
is wrong. Correct the error and select the START option again.
The program changes the attributes as specified, or if no change is
EXIT
Source
Target =
NO Copy Only Modified Files
NO Duplicate Empty Subdirectories
NO Copy Files and Turn Off Archive Attribute
NO Prompt Before Copying Each File
NO Include Files In All Subdirectories
NO Check the Copy Against the Original
NO Pause Before Starting
NO Copy Files After a Date
************** START XCOPY
**************
You must enter the exact file information for the first two items in this
menu. The rest of the options offer a choice between NO or YES; you
can either accept the default (NO) or press Enter to change the
parameter to YES. Use the Copy Files/Directories options as follows:
Source—Type the drive letter, pathname, and filename of the file or files
on the source disk you want to copy to the target disk. You can use
wildcards to identify a group of files. For example, to copy all the files
B: \ SALES
—
Copy Only Modified Files If you want to copy only those files that
have been modified, select YES. This option copies files whose archive
bit has been set, but does not turn off the archive bit of the source file.
Duplicate Empty —
If you want to copy empty
Subdirectories
subdirectories (those that do not contain any files) in addition to those
that contain files, select YES. You must also select the Include Files In
All Subdirectories option when you select this option.
Copy Files and Turn Off Archive Attribute — Like the Copy Only
Modified Files option, this option copies only those files that have been
modified, but it also turns off the archive bit on the source files. If you
want the archive bit on the source files turned off after the files have
been copied, select YES.
Prompt Before Copying Each File — If you want the program to prompt
you to respond Yes or No before it copies (or does not copy) each file,
select YES.
Check the Copy Against the Original— If you want the program to
check the copy against the source file after it copies each file, select YES.
If anything is wrong, the program copies the file again.
Pause Before Starting — If you want the program to pause before starting
the copy operation so you can swap diskettes if necessary, select YES.
Copy Files After a Date — If you want to copy only those files that were
modified on or after a certain date, select YES. A small box appears to
the right of the menu with this prompt (for the United States):
MM-DD-YYYY
05281988
Then pressEntGr to move the cursor back to the large menu. If you
type an invalid date (more than 12 for the month or 31 for the day),
you must reenter the date.
When you have made your selections, move the cursor block down to
START XCOPY and press Enter to begin. If you have entered any
invalid information in the menu, an error message appears stating what
is wrong. Correct the error and select the START option again.
The program copies the files The screen then prompts you
as specified.
to press any key to continue,and the Copy Files/Directories menu
reappears. Move the cursor block up to EXIT and press Enter to return
to the File Utilities menu.
Disk Utilities
When you select the Disk Utilities option from the main menu, the
screen displays these options:
EXIT
Check Disk
Disk Copy
Disk
Compare
Format Disk
Move the cursor block to the option you want and press Enter. Then
follow the appropriate instructions below for that option.
The Disk Utilities option calls the Epson program DU. When you select
one of the options from this menu, DU runs the corresponding
MS-DOS command.
allocation tables on the specified disk. The program displays a disk and
memory status report. This option runs the MS-DOS CHKDSK
program.
When you select the Check Disk option, the screen displays this menu:
Destination = A:
NO Correct Errors
NO Display Messages
******** START CHECK DISK ********
Destination Drive— Enter the letter of the drive containing the disk you
want to check. The default is A. If you want to check a particular file or
group of files to see if they are contiguous, you can specify a filename as
well. For example, to check all files in drive A with the extension .TXT,
you would type:
A:*. TXT
When you have made your selections, move the cursor block down to
START CHECK DISK and press Ent0r to begin. If you have entered
any invalid information in the menu, an error message appears stating
what is wrong. Correct the error and select the START option again.
The program checks the disk and files as specified. The screen then
prompts you to press any key to continue, and the Check Disk menu
reappears. Press T to return to the Disk Utilities menu.
accidentally destroy any of its data. (See your User’s Guide for
instructions.)
When you select the Disk Copy option, the screen displays this menu:
•
Source Drive
: Destination Drive
NO Copy a Single Side
******** START DISK COPY ********
Source Drive— Enter the letter of the drive containing the source disk
(the disk you want to copy).
When you have made your selections, move the cursor block down to
START DISK COPY and press Enter to begin. If you have entered
any invalid information in the menu, an error message appears stating
what is wrong. Correct the error and select the START option again.
: Source Drive
: Destination Drive
DOUBLE Single/Dbl Sided
9 8/9 Sectors/Trk
*** START DISK COMPARE ***
Source Drive — Enter the letter of the drive containing the first of the
two diskettes you want to compare.
Destination Drive— Enter the letter of the drive containing the second
you have only one diskette drive, enter that drive
diskette. (If letter for
both the source and destination drives.)
When you have made your selections, move the cursor block down to
START DISK COMPARE and press Enter to begin. If you have
entered any invalid information in the menu, an error message appears
stating what is wrong. Correct the error and select the START option
again.
Format Disk
Use the Format Disk option to format a diskette or the hard disk so
MS-DOS can write to it and read it. The diskette can be a new, blank
diskette, or one that contains data you do not want to keep. For a hard
disk you may want to use the SELECT command instead because it
automatically installs MS-DOS (with the country information) on the
disk.
Warning
The FORMAT program erases all data on the diskette. Be sure you do
not want to keep any files on a used diskette before you reformat it.
When you select the Format Disk option, you see this prompt:
Destination Drive
Enter the letter of the drive containing the diskette you want to format.
When you press Enter or i, the screen displays a menu such as this:
A: Destination Drive
DOUBLE Single/Double Sided
NO 8 Sectors / Track
NO Create System Disk
NO Create Volume Label
NO Create MS-DOS Area
1.2MB Media in 1.2MB Drive
NO Sectors / Track
NO Tracks
***** START DISK FORMAT *****
Create System Disk—If you want to copy the MS-DOS system files to
the diskette so it will be bootable, select YES.
Create Volume Label—If you want the disk to have a volume label,
select YES. The program prompts you for the name when it is running.
When you have made your selections, move the cursor block down to
START DISK FORMAT and press Enter to begin. If you have entered
any invalid information in the menu, an error message appears stating
what is wrong. Correct the error and select the START option again.
as necessary. When the disk has been formatted, this prompt appears:
Mode Settings
When you select the Mode Settings option from the main menu, the
screen displays these options:
EXIT
Video Display
Printer
Serial Port
Redirect LPTn
Code Page
These options let you define the operation of your printer, monitor or
serial port, and control code page switching.
Move the cursor block to the option you want and press Enter. Then
follow the appropriate instructions below for that option.
The Mode Settings option runs the MS-DOS MODE command. Any
changes you make remain in effect until you change them, or turn off
Video Display
Use the Video Display option to change the way your screen displays
text. When you select this option, the following menu appears:
BW80 Attributes
None Alignment
No Test Pattern
*** START VIDEO SETUP ****
When you have made your selections, move the cursor block down to
START VIDEO SETUP and press Enter to begin. If you have entered
any invalid information in the menu, an error message appears stating
what is wrong. Correct the error and select the START option again.
Follow the screen prompts until the Video Display menu reappears.
Move the cursor block back up to return to the Mode Settings menu.
Printer
Use the Printer option to select the printer device and to change the
way it prints. When you select the Printer option, this menu appears:
LPT1 Printer #
132 Chars Per Line
6 Lines Per Inch
No Retry on errors
** START PRINTER SETUP ***
Note: You can use only printer device LPT 1 unless you install additional
option cards for multiple printer ports.
When you have made your selections, move the cursor block down to
START PRINTER SETUP and press Enter to begin. If you have
entered any invalid information in the menu, an error message appears
stating what is wrong. Correct the error and select the START option
again. Follow the screen prompts until the Printer menu reappears.
Then move the cursor block back up to return to the Mode Settings
menu.
Serial Port
Use the Serial Port option to select the serial port you want to use and
to define the communication parameters. When you select the Serial
Port option, this menu appears:
C0M1Port Number
9600Baud Rate
NoneParity
8 Data Length
1 # of Stop Bits
No Retry on errors
* START SERIAL PORT SETUP *
Note: You can use only communication port COM1 unless you install
When you have made your selections, move the cursor block down to
START SERIAL PORT SETUP and press Enter to begin. If you have
entered any invalid information in the menu, an error message appears
stating what is wrong. Correct the error and select the START option
again.
Follow the screen prompts until the Serial Port menu reappears. Then
move the cursor block back up to return to the Mode Settings menu.
LPT1 Printer It
C0M1 Port Number
* START PRINT REDIRECTION *
Table 5-5 shows the default and alternative values you can select for
these parameters.
Note: You can use only COM1 unless you install special option cards
with additional hardware input/output ports.
When you have made your selections, move the cursor block down to
START PRINT REDIRECTION and press Enter to begin. If you have
entered any invalid information in the menu, an error message appears
stating what is wrong. Correct the error and select the START option
again.
Follow the screen prompts until the Redirect LPTn menu reappears.
Then move the cursor block back up to return to the Mode Settings
menu.
Note
Be sure to read Chapter 9 for information on code page switching
before you use the Code Page option.
When you select the Code Page option, this menu appears:
Prepare
Select
Status
Refresh
Move the cursor block to the option you want and press Enter. Then
follow the appropriate instructions below for that option.
CON Device
Code Page List
EGA. CPI File Name
** START PREPARE SETUP **
Table 5-6 shows the default and alternative values you can select for
these parameters.
When you have made your selections, move the cursor block down to
START PREPARE SETUP and press Enter to begin. If you have
entered any invalid information in the menu, an error message appears
statingwhat is wrong. Correct the error and select the START option
again.
Select — Once you have prepared a code page, you use the Select
option to activate the code page for a particular device. When you
choose the Select option, this menu appears:
CON Device
850 Code Page List
** START SELECT SETUP ***
Table 5-7 shows the default and alternative values you can select for
these parameters.
When you have made your selections, move the cursor block down to
START SELECT SETUP and press Enter to begin. If you have
entered any invalid information in the menu, an error message appears
stating what is wrong. Correct the error and select the START option
again.
Follow the screen prompts until the Select menu reappears. Press t to
return to the Code Page menu.
CON Device
*** CODE PAGE STATUS ****
CON
PRN
LPT1
LPT2
LPT3
Choose the device for which you want to display the code page status.
Then move the cursor block down to CODE PAGE STATUS and
pressEnter to begin. If you have selected an invalid device, an error
message appears. Correct the error and try again.
The program displays the number of the active code page currently
selected and any other prepared code pages for the device. Press any key
to return to the Status menu. Press t to return to the Code Page menu.
Refresh— Use the Refresh option to reselect a code page that has been
deactivated because of an error. When you choose the Refresh option,
this menu appears:
CON Device
*** REFRESH CODE PAGE #**
CON
PRN
LPT1
LPT2
LPT3
Choose the device for which you want to refresh the code page. Then
move the cursor block down to REFRESH CODE PAGE and press
The program refreshes the code page previously selected for the device.
Press any key to return to the Refresh menu. Press T to return to the
Code Page menu.
HELP
You can use the HELP option to display onscreen instructions for any
MS-DOS command or Epson utility. HELP provides a quick way to
When you select the HELP option, a directory listing of all the
commands appears on the screen.
If there is more than one page of text, you see the prompt PgUp on the
top of the screen. Press Page Up to display the rest of.the text. After
reading the help information, press Esc to return to the menu.
Current Drive: C
Enter the command you want to run, including the complete pathname
if necessary, and press Enter to execute it. For example, to display a
directory of the files on drive A, you would type the following and press
Enter:
DIR A:
The screen displays a list of all the files on drive A.
After the command has been completed, the screen displays this
prompt:
To run the program, log onto the directory containing the SETPRINT
program or enter the correct pathname, and then type SETPRINT and
press Enter. The screen displays this main menu:
Exit Program
Initialize Printer
Send Form Feed
Send Carriage Return
off CONDENSED Mode
off EXPANDED Mode
off EMPHASIZEDMode
off ITALICS Type Face
off ELITE Type Face
off Skip-Over-Perf
off Double-Strike
off Unidirectional Printing
off Proportional Spacing
PRINT this message as a test.
Each of the menu options acts as a switch for controlling your printer.
Use i or t to move the cursor block to an option. Press Enter to
activate the function or to select the alternate function.
When you have made your selection, move the cursor block up to Exit
Program and press Enter. Your printer now prints according to your
choices until you change them or turn off or initialize the printer.
Options
The menu options make it very easy to select the way your printer
operates:
Send Form Feed— Select this option to send a form feed code that
advances your paper to the next top of form, which is usually the top of
the next page. This command is handy for ejecting single sheets when
you finish printing.
Send Carriage Return— Select this option to advance the paper in your
printerone line. This is convenient any time you want to move the
paper up just a few lines. (This option sends a carriage return and a line
feed.)
ITALICS Type Face — Select this option to turn on (or turn off) italic
character printing.
ELITE Type Face—Select this option to turn on (or turn off) elite
PRINT this message as a test —When you have made the selections you
want from the above list, you can test the appearance of their output by
using this option to print a sample line. Press Enter to print the sample
line using the options you have selected.
Once you select the configuration for your printer and exit SETPRINT,
the new configuration does not appear on the SETPRINT menu. It isn’t
possible to read the status of the printer and display it. Anytime you are
unsure of how your printer is you can print the test message to
set up,
• Display and change the attributes of any file; attributes are special
switches that you use to designate files as read-only, hidden, system,
or archived
• Execute programs
Caution
Remember that XTREE is very powerful. You can erase a group of files
Path: \
FILE: *.*
DISK: A:
Available
Bytes: 9,216
Note
If your monitor seems to flicker or shows interference (snow) in the
background when XTREE, you may want to run the
you are using
program XTREEINS to improve the display. See the XTREEINS
command in this chapter.
• Top line —The path shown here is your current path location in a
• FILE box—This is the key to displaying files. -Only files that match
the specification shown here can appear on the screen; all others are
invisible. The wildcard characters (*.*) you first see in this box allow
all files to match, so they are all displayed.
• DISK box—This box identifies the disk you’re looking at, its label,
and the amount of space available. XTREE updates this
information every time you log onto a new drive or make a change
on a disk.
there are more, you can scroll the cursor up or down to see them.
• Function key line—This line at the lower right corner of the screen
shows the function key commands available to you.
Using this collection of displays and commands is very easy. Follow the
directions on the prompt line to move the cursor through the directory
and file displays, or try the S command to show all your disk’s files on
screen at once. Press L to log onto other drives — and watch XTREE
gather a disk’s statistics into a display showing its directory structure and
files.
Options
You can perform numerous directory and file functions with XTREE.
Before you begin any work with XTREE, always make sure that you log
onto the correct drive to work on its directories or files.
Look at the drive letter and disk label that appear in the DISK box of
the menu screen. To log onto a different drive, press L, and then press
the letter of the appropriate drive.
The key commands come in two sets, one for directories (DIR
commands) and one for files (FILE commands). These commands
actually perform work on your disks. To use them, type the first letter of
the command (or Ctrl plus the initial). They are automatically executed
so you don’t need to press Enter. When you need to provide further
input, a prompt appears at the lower left of the screen.
The function keys are the main switches for XTREE. When you need a
helpful reminder, or when you need to start or stop execution of a
command, these keys act instantly to control the program.
The Alt key functions can be performed for the DIR commands or FILE
commands. Press Alt to see the available functions. To execute an Alt
command, hold down the Alt key and press the first letter of the
command. When you need to provide further input, you see a prompt
on the lower left side of the screen.
nnn,nnn Bytes
press ANY KEY to continue
When you press a key, the prompt disappears and the directory
window reappears.
Delete
Press D to delete any empty directory other than the root directory.
To select a directory, place the cursor on it. When you press D, the
screen displays these prompts:
Execute
Press X to execute a different external command while you remain
in XTREE. XTREE logs onto your currently displayed directory
and displays the command line:
Current Path: A: \
>
Type the name of the command or program you want to run and
press Enter. For example, you can type FORMAT or CHKDSK to
format or check a disk. After thecommand or program executes,
the command line reappears. Press Enter to return to the XTREE
menu.
Files
FILES specification:
enter a file spec or press RETURN for *.#
Type the new specification and press Enter, or press Enter alone to
accept the wildcards. After you enter the specification, it appears in
the FILE box and the commands reappear. The files that match the
new specification appear on your screen.
Log disk
Press L to log onto a different disk. You must log onto a disk
through XTREE before you can work on its files. When you press
L, the screen displays these prompts:
LOG DISK:
enter new default drive
Press the letter of the drive you want. XTREE logs the drive you
specify, reads the directory of that disk, and presents its file
structure.
Print
Press P to print directory information on your printer. XTREE asks
—Pathnames. Select this option to print a list of all the path names
on the disk. Each path name is listed on a line by itself, and the
names are printed in the order you see them in the Directory
Window.
Press S to show all your disk’s files on the screen. This command
displays every file, regardless of its directory. The files list
While showing all files, you are able to affect them by running other
XTREE commands. Press Enter to restore the display when you’re
done.
Tag
Press T to tag all files in a directory. To select a directory, just move
the cursor to its name and press T. A diamond symbol appears
beside all the files in the directory. Once you tag a file with this
symbol, it is subject to other XTREE commands such as copying
and deleting. Tagging allows you to define the files you are handling
as a group.
Untag
Press U to untag all files in the directory. Just move the cursor to the
directory and press U. This
removes all tags in a directory. Untag
the files when you complete an operation so you do not accidentally
affect them when executing a different operation later. This also
saves the work of untagging files individually.
Press Ctrl S to display all matching files that are tagged. All
subsequent operations affect the display the same as the Show all
files command.
Ctrl Tag
Press Ctrl T to tag every file on your disk that matches the file
Ctrl Untag
Press Ctrl U to untag every file on your disk that matches the file
you press Alt F again. Then they are displayed with the date and
time as well. Press Alt F again to return to the three-column display.
Press Alt S to change the order in which files are displayed in the
file window. XTREE asksyou to select the sort order to use in all
subsequent displays in the file window. Select one of the following
by pressing the appropriate letter:
file name extension. For example, all the *.DOC files appear
before the *.TXT files. Files with the same extension are displayed
in alphabetic order by name.
— Size. XTREE displays files ordered by their size. The largest files
appear first, followed by smaller files. Files with the same size are
ordered by name.
attributes set. The attributes of a file are four special bits that you
can switch on or off, causing the status of the file to change in
certain ways. File attributes are R/O (Read-only), Hid (Hidden), Sys
(System), and Arc (Archive):
The program interprets this mark to mean that the file was
modified since you created it. Programs that are sensitive to
modified and unmodified files may check this. XTREE allows you
to change the status of this switch. +A turns this attribute ON,
and —A turns it OFF.
File commands
Table 5-10 describes the key commands that you see when the cursor is
in the files window. A complete description of each command and how
it works follows the table.
Command K2lT
name
Attrib
mmm
A
'lift Description
directories as necessary
’~ y
Command U»T
name
Rename
mmm
R
Description
Attrib
Press A to display the attributes of a file in order to verify or change
them. When you press A, the screen displays the following:
Type the attributes and press Enter. (The attributes are described
under the Alt Tag command.)
(You can set all four attributes at once.) When you set the
attributes, they are written to the disk directory. If you only want to
see the attributes, not change them, just press Enter. The prompt
disappears and the commands reappear.
Copy
Press C file at the cursor position. XTREE can duplicate
to copy the
the file any directory on any drive, and you can rename the file.
in
When you press C, the screen prompts you for the name of the new
file. Press Enter to use the same name or enter a new filename.
Type the drive and path destination for the and press Enter.
file
Now copies of the file exist at both the source and destination
locations. When copying is complete, the prompt disappears and
the commands reappear.
Delete
Press D to ielete the file at the cursor position. When you press D,
this prompt appears:
Execute
Use this command to execute a different external command while
you remain in XTREE. Move the cursor to the program you want
to run (FORMAT or CHKDSK, for example) and press X. The
command line displays:
Current Path: A: \
> command
Warning
Do not execute a memory resident program from XTREE. If you do,
XTREE does not reload after the program runs; instead, MS-DOS exits
XTREE and the A) prompt reappears. This type of exit can cause
problems in your computer’s memory. Run memory resident programs
only at the A) prompt.
Files
FILES specification:
enter a file spec or press Enter for
Type the new specification and press Enter, or press Enter alone to
use the wildcards. After you enter the specification, it appears in the
FILE box. The files on screen change to match the new
specification.
Press L to log onto a different disk. You must log onto a disk
through XTREE before you can work on its files. When you press
L, the screen displays the following:
LOG DISK:
enter new default drive
Press the letter of the drive you want. XTREE reads the directory of
the disk in the new drive, and displays its file structure.
except that it is faster. Also, the disk space required to hold two
copies of the file is not needed.
XTREE prompts you for a new filename. Press Enter to keep the
same name. XTREE asks you which directory is to receive the file.
You can enter any directory on the logged disk, but you may not
enter a drive descriptor. XTREE only moves files to the currently
logged disk.
Print
Press P to print the contents of the current file on your printer. If
the you wish to print does not contain text information, you
file
XTREE prompts you to ready your printer. Make sure the printer is
turned on and that the paper is aligned theway you want. During
the printing of the file, you can cancel the operation by pressing F3.
After printing is complete, XTREE issues a top-of-form command to
the printer.
Rename
Press R to rename the file at the cursor position. When you press R,
the screen prompts:
Tag
Press T to tag the file at the cursor position. This places a diamond
symbol next to the filename on screen and makes the file subject to
other XTREE multiple-file commands such as copying and deleting.
View
Press V to view the contents of the text file at the cursor position.
Only files containing alphanumeric (ASCII) characters can be
displayed properly on the screen. Program such as those with
files,
—Enter. Press Enter to quit viewing the file and return to the
XTREE menu.
When you are through using View, press Enter to return to the
XTREE menu.
Ctrl Attrib
Press Ctrl A to change the attributes of all tagged files in a directory.
These attributes are the same as the A command offers. When you
enter this command, the screen displays the following:
Type the drive and path destination for the files and press Enter.
XTREE asks one more question:
Now, copies of the files exist at both the source and destination
locations. When copying is complete, the prompt disappears and
the commands reappear.
This command has an extra feature. If you are mass copying files to
a disk that becomes full, XTREE alerts you with this message:
You can replace the full disk with a new one and then press a key to
continue (you can reenter the drive and path, if desired). This
feature allows you to copy large groups of files, especially from a
hard disk, without being limited to a single destination disk.
Ctrl Delete
Press Ctrl D to delete all tagged files in a directory. When you use
this command, the screen displays the following:
Ctrl Move
Press Ctrl M to move all tagged files to another directory. The
moved files will no longer reside in the current directory.
Ctrl Print
Press Ctrl P to print on the printer the contents of all the files
XTREE prompts you to ready your printer. Make sure the printer is
Ctrl Rename
Press Ctrl R to rename all tagged files in a directory. This command
applies the same you tag. You can’t, of
set of characters to every file
course, give every file in a directory an identical name, but you can
give them identical extensions if their names are different, or
identical names if their extensions are different. Use wildcards (*
and ?) to make substitutions to parts of the filenames. When you
use the Ctrl R command, the screen displays the following:
Ctrl Tag
Press Ctrl T to automatically tag all files in a directory. This saves
time when you want to use a multiple-file command such as Copy
on all the files of a directory. When you press Ctrl T, a
or Delete,
diamond symbol appears next to the name of each file in the
directory.
Ctrl Untag
Press Ctrl U to untag all the files in a directory. This removes the
diamond symbols next to the filenames, protecting them from other
XTREE multiple-file commands such as copying and deleting.
Alt Copy
Press Alt C to copy tagged files to another disk, duplicating any
directories that do not exist on the destination disk. Use this
command to preserve the directory structure of the source files. This
is extremely useful for performing backup operation. Alt Copy is
• To specify the destination of the copy, enter only a drive letter. The
drive must be different from the current drive.
Alt Tag
Press Alt T to tag all matching files on the disk with certain file
Alt Untag
Press Alt U
remove the tag from all files that match the attribute
to
setting. Enter the attributes the same way as for Alt Tag. This
Function keys
At the lower right of the screen are the function keys that control
XTREE. They work as follows:
FI— Quit
Press FI to exit from XTREE at any time. This takes you out of the
program and returns you to the MS-DOS command prompt on the
default drive. When you press FI, the screen displays this prompt:
Path: \
(1)
(2)
(4)
(3)
(5)
(6,7)
(8) (9)
From here you can press i to display the HELP pages one at a time
or T to go back through them. Whenyou are through reading the
Help screens, just press Enter to menu. (HELP isn’t
restore the
available during the execution of commands.)
When there is no activity to cancel, this key choice does not appear
on the screen.
F4 — Command display
Press F4 to toggle the command line display ON or OFF.
Alt FI — Quit
Press Alt FI to exit XTREE. This exit returns you to the MS-DOS
prompt, but the current directory used by MS-DOS is the same as
the last directory you selected while in XTREE.
• When you type characters to specify a particular drive and path for
copying files, these characters are stored in a buffer. (A buffer is a
place in memory that stores information for later use.) Because of
this buffer, the characters reappear when you use the copy
command a second time. This makes sending files to the same or a
similar destination easier the second time. You can clear the buffer
by pressing ESC.
There are countless ways you can put XTREE to work. All disk setup
and maintenance functions can benefit from this utility. You can add
XTREE to batch files like any other MS-DOS command— you could
even put it in an AUTOEXEC.BAT file to display a disk’s file structure
when booting up.
XTREEINS
If the monitor you are using does not display clearly when you are in
XTREE, you can improve the display by running XTREEINS.
XTREEINS lets you install XTREE for your particular monitor, and
reduces flickering that sometimes appears on certain types of screens.
You can also use XTREEINS to change the screen attributes and colors
of your display if you have a color monitor.
Ifyou want to install XTREE to correct the screen image, choose option
A. If you want to change the display attributes or colors, choose option
B. Choose C when you want to exit XTREEINS. The following sections
describe these options.
You can also use this option to restore the original default values for
XTREE and cancel all the changes you made previously with
XTREEINS.
A - Quick Display
This type should be selected for most configurations.
However, some monitors cannot keep up with XTREE when
it displays information, and 'snow' or flickering lines
may appear from time to time. If this is the case with
your monitor, select display type B.
B - Normal Display
This type displays the XTREE screens slower so they are
clearer.
If you have not had any problems with the way XTREE displays on
your screen, press A to continue displaying in the Quick Display mode.
If, however, your screen image containssnow—which may happen if
you have installed a color/ graphics adapter—press B to change to the
Normal Display. The Normal Display slows down refreshing the screen
in XTREE so the image you see is clearer. To return to the main menu
without making any changes, you can press ESC any time you are in
the menu.
Note
Because the screen responds slower in Normal mode, XTREE also
responds slower to your commands.
A - Color
Some monitors may not be able to clearly display
information in color. If this is the case with your
color monitor, select monitor type B.
B - Monochrome or Composite
If you can see the box clearly, you should be able to use XTREE without
any display problems. you cannot see the image clearly, you need to
If
try installing the program again. Answer either Y for Yes or N for No.
The main menu now appears. If you want to exit the program press
option C. (If you want to return to the original default values, see the
section called “Restoring original values” at the end of this description.)
If you press N, the main menu appears. You can either exit the program
or continue using it (XTREEINS and XTREE ignore any changes you
made).
4. Answer Y to the prompt asking if you can see the box (even if you
and
can’t) to the save monitor type prompt.
6. When the next screen appears, follow the instructions for changing
Keep pressing the function keys until
display attributes or colors.
you good display. Then follow the instructions to install your
get a
changes and exit the program.
^The next time you load XTREE, you should be able to see it clearly.
You can now use the function keys to alter the screen attributes and
select different color you have a color monitor). If you
combinations (if
You can press ESC any time you are in this menu to cancel any changes
you have made and XTREEINS restores the default values.
You can now load XTREE to test the changes you made. If you still
don’t like the display, you can go back into XTREEINS and make other
modifications.
BREAK 6-6
BUFFERS 6-7
COUNTRY 6-8
DEVICE 6-11
FCBS 6-13
FILES 6-15
LASTDRIVE 6-16
SHELL 6-17
STACKS 6-19
System information you can enter in the CONFIG.SYS file includes the
following (the name in parentheses is the configuration command):
• The number of files that can be open at any one time (FILES)
Each time you start your system, MS-DOS searches the root directory
of the current drive for the CONFIG.SYS file. If CONFIG.SYS does
not exist, MS-DOS uses default values for your system configuration.
You can create a CONFIG.SYS file with any text processor or you can
use the MS-DOS editor, EDLIN. (EDLIN is described in Chapter 8,
Programming Tools.) You can also use the COPY CON command.
Note
The SELECT command creates a CONFIG.SYS file with the
COUNTRY configuration command. If you have used the SELECT
command, you can use EDLIN or any other text processor to add
commands to the existing CONFIG.SYS file.
Allocating Memory
Your computer consists of two types of memory: random access memory
(RAM) and read-only memory (ROM).
RAM is read/ write memory, which means you can store data in RAM
from it.
as well as read information RAM is called volatile memory
because when you turn the computer off, the information stored in
RAM is erased.
ROM is memory that can be read but not written to or altered. ROM
provides permanent storage for program instructions, such as the boot
program that starts the computer and the basic input/output system
(BIOS). ROM called nonvolatile memory because the information
is
The RAM that comes with your computer called standard RAM. You is
can also add expansion cards to your computer to increase the amount
of available RAM. This additional memory is called extended memory
and is located above 1MB.
With this version of MS-DOS, you can also use extended memory as
expanded memory. Expanded memory is based on the expanded
memory specification (EMS) developed jointly by Lotus®, Intel®, and
Remember that any data stored in a virtual disk is erased whenever you
turn off the computer. Be sure to copy data from a virtual disk to a
physical disk on a regular basis.
If you add memory expansion cards to your computer, you allocate the
additional memory using the MS-DOS device drivers VDISK.SYS and
EEMM.EXE. How you allocate the memory depends on the software
you You can run any software written to use the LIM-EMS
are using.
Your software documentation indicates if your application
specification.
uses expanded memory.
Opening Files
You can specify the number of files that can be open at one time in your
CONFIG.SYS.
Some application programs open files with file control blocks (FCBs)
and others use file handles. MS-DOS uses the information stored in
FCBs and file handles to access the files.
You can use the FCBS or the FILES configuration command if your
application program opens a large number of files at one time. These
commands are described later in this chapter.
MS-DOS assigns a letter to each block device, starting with A. The first
hard disk drive (with only one partition) or the letter C if you do not
If you have formatted your hard disk with multiple MS-DOS partitions,
the device drivers are assigned letters following the partitions. For
example, your hard disk has three MS-DOS partitions, the partitions
if
are assigned the letters C, D, and E. The device drivers are assigned
letters starting with F.
Configuration Constraints
Specifying configuration parameters usually requires additional memory.
This decreases the amount of memory available for your application
programs.
Purpose
Tells MS-DOS when to check for Ctrl Break or Ctrl C.
Format
BREAK = ON
BREAK = OFF
Description
Use this configuration command to turn on or off the MS-DOS abort
current command function.
When BREAK is OFF, MS-DOS checks for Ctrl Break or Ctrl C only
when your program requests standard input, output, print, and
auxiliary operations. The default is OFF.
If BREAK is ON, MS-DOS checks for Ctrl Break or Ctrl C every time
your program accesses the system. ON improves the ability to abort
programs but slows the system. Only set BREAK to ON when you
need the extra Ctrl Break or Ctrl C checking.
Purpose
Sets the number of disk buffers allocated in memory.
Format
BUFFERS = nnn
Description
MS-DOS uses disk buffers to store data when reading from and writing
to disk. How many buffers you allocate depends on the type of
applications you use and the amount of memory in your computer.
For applications that randomly read and write records (such as many
BASIC and data base applications), you can speed up access time by
increasing the number of buffers. For applications that sequentially read
and write records, allocating more buffers does not increase
performance.
Each additional buffer requires 528 bytes of memory. This decreases the
amount of memory available for your application programs.
To determine how many buffers you need, run some of your application
programs with the BUFFERS command set to different values. For
applications such as word processing, set the number of buffers between
10 and 20 for best performance. If you plan to create a lot of
subdirectories, set the number to a value between 20 and 30.
You can allocate from 2 to 255 buffers with the BUFFERS command.
The default number of buffers is 2. If your computer includes a diskette
drive that reads diskettes with more than 360KB of data, then the
default is BUFFERS = 3. Memory size determines the default as follows:
Purpose
Selects display parameters that are country dependent, such as the date
and time format, currency symbols, and decimal separator, and activates
a code page.
Format
COUNTRY = code[, [ page][ [d:] [path] filename]]
Description
Use this command to configure your system for a specific country. All
system disks distributed by Epson automatically configure the system for
the country of sale. Therefore, only use this command when you
frequently use the layout of a different country.
In the COUNTRY command, code specifies the 3-digit country code for
a particular country or language. The page parameter specifies the code
page that you want to use for the selected country (most countries have
two code pages). The optional file specification identifies the file that
contains country-specific information.
Note
MS-DOS automatically enters the COUNTRY command into a
CONFIG.SYS file when you use the SELECT command.
Examples
To set up country-dependent information for Latin America, include
the following command in your CONFIG.SYS file:
. COUNTRY = 003,437, C:\MSD0S\C0UNTRY.SYS
MS-DOS searches for the COUNTRY.SYS file in the MSDOS
directory of drive C.
COUNTRY = 002
MS-DOS uses the default code page, 863, and searches the root
directory of drive C for the COUNTRY.SYS file.
Purpose
Installs the specified device driver during system startup.
Format
DEVICE = [d:] [path] filename [ parameters ]
Description
A device driver is a set of instructions that controls peripheral devices or
other software programs. Device drivers enable MS-DOS to
communicate properly with your peripheral devices and software
programs.
MS-DOS loads the standard device drivers that support the standard
input, output, printer, hard disk drive, and diskette drive(s). Use the
DEVICE command to replace and/or add to the standard drivers.
When you buy a new device, such as a mouse or a scanner, you may
receive device driver software. Install the device driver using the
DEVICE command in your CONFIG.SYS file. To install a new driver,
make sure the device driver file is in the directory you specify in the
DEVICE command.
Example
To use the ANSI escape sequences described in Appendix E, include the
following command in your CONFIG.SYS file:
DEVICE = ANSI. SYS
MS-DOS searches the root directory of the default drive for the
ANSI.SYS file. If it finds the file, MS-DOS replaces all keyboard input
and screen output with the ANSI escape sequences.
Purpose
Specifies the number of file control blocks (FCBs) that can be open at
one time.
Format
FCBS = m,n
Description
FCBs are used by many application programs to create, open, read,
write, and delete files. One FCB is set up for each file that is opened.
system and the SHARE command. Without file sharing, MS-DOS can
set up any number of FCBs.
m is a number from 1 to 255 and specifies the total number of files that
than m files.
When you use the FCBS command in your CONHG.SYS file, the
resident size of MS-DOS is increased. This means the amount of space
available to your application programs is decreased.
FOBS = 4,2
In this case, if you have four open and you open another file,
files
the third file that is now closed, you see this message:
FCB unavailable
Purpose
Sets the maximum number of files that can be open at one time.
Format
FILES = nnn
Description
This command affects only files opened and accessed with file handles.
It does not affect files opened with FCBs.
The number of files you set here depends on your installation. This is
Example
To allow 20 files to be open at one time, include the following command
in your CONFIG.SYS file:
FILES = 20
Purpose
Sets the last valid drive letter that MS-DOS recognizes.
Format
LASTDRIVE = x
Description
This command sets the maximum number of drives that can be
accessed by MS-DOS.
Example
If your system has two diskette drives, one hard disk drive with two
MS-DOS partitions, and four virtual disks, enter this command in your
CONFIG.SYS file:
LASTDRIVE = H
Purpose
Specifies the name and location of a command processor.
Format
SHELL = [d:] [path] filename [/ switches ]
Description
Use this command to specify a top-level command processor, called a
Whenever you boot the system with a CONFIG.SYS file that includes
the SHELL command, MS-DOS starts using the specified command
processor. This command processor interprets the commands you enter.
is not in the root directory of the disk from which you are starting the
system. If you do not include the SHELL command, the default is
COMMAND.COM.
COMSPEC is an environment variable that also specifies the command
MS-DOS uses the COMSPEC variable whenever reloads
processor. it
Purpose
Sets the number of available stack frames and their size.
Format
STACKS = m,n
Description
MS-DOS When a
uses stack frames to process hardware interrupts.
hardware interrupt occurs, MS-DOS allocates one free stack frame to
process the interrupt. When the interrupt is complete, MS-DOS releases
the stack frame.
The number of stack frames, m, can be from 0 to 64. The size of the
stack frames, n, can be from 0 to 512 bytes.
STACKS =0,0
For all other computers, the default is:
STACKS = 9,128
message:
If you see this message, increase the number of stack frames, which
allows the system to process more hardware interrupts. Normally, you’ll
want to increase the number of stack frames rather than increase the
size of the individual frames.
Example
To allocate eight stacks of 512 bytes each for hardware interrupt
handling, include this command in your CONFIG.SYS file:
STACKS = 8,512
ANSLSYS
DISPLAY.SYS
DRIVER.SYS
EEMM.EXE
PRINTER.SYS
VDISK.SYS
Purpose
Provides screen and keyboard control.
Format
DEVICE = [d:] [path] ANSI. SYS
Description
You can use the ANSI.SYS device driver to control cursor movement,
erase all or part of the screen, change the screen display, and reassign
key functions. These changes are defined by character strings called
escape sequences.
Purpose
Supports code page switching for the console device (CON).
Format
DEVICE = [ d[pa th] DISPLAY SYS
:
.
Description
You need to use this device driver only if you want to do code page
switching on your console device.
Ifyou have the proper supporting hardware, you can install this device
driver to switchbetween prepared code pages for your console. See
Chapter 9, Code Page Switching, for more information about using this
device driver to support code page switching.
Parameter Description
Example
To set up code page switching an EGA display adapter with a
for
built-in hardware code page of 437 and the ability to add two more code
pages, enter this command in your CONFIG.SYS file:
DEVICE = C:\DOS\DISPLAY.SYS CON: = (EGA, 437, 2)
Purpose
Assigns new logical names to diskette drives.
Format
DEVICE = [d:] [path] DRIVER. SYS /D:ddd [/T ttt] :
Description
Use this device driver to assign new logical names to your diskette drives
or to add external diskette drives to your computer.
With DRTVER.SYS in your CONFIG.SYS file, you can copy files from
one drive to the same drive when the system has more than one diskette
drive. Without DRIVER.SYS, MS-DOS automatically copies files to the
second drive.
Switch Function
/D ddd
: Specifies the physical drive number. physical drive A
has a value of 0 through 255. Numbers 0 to 127
identify diskette drives and 128 to 255 identify hard
disk drives. The first physical diskette drive is 0 and it is
The first physical hard disk is 128, the second hard disk
is 129, and so forth.
/T ttt
: Specifies the number of tracks per side (1-999). The
default is 80 tracks per side.
/S SS
: Specifies the number of sectors per track (1-99). The
default is 9 sectors per track.
The default is 2.
Examples
To copy from an internal 1.2MB diskette drive to the same internal
drive, use DEVICE = DRTVER.SYS with these switches:
This assigns the logical drive letter D to the first diskette drive. It can
now be referenced as drive A and drive D. In this example, your
computer has two internal diskette drives (the first one is 1.2MB) and
one hard disk.
COPY A: ONEFILE D:
To set up a logical drive letter of D for a 720KB external diskette drive
on a computer with one internal diskette drive and a hard disk, use
DEVICE = DRTVER.SYS with this format:
Purpose
Supports expanded memory on 80386-based computers.
Format
DEVICE = [d:] [path] EEMM.EXE
Description
This device driver lets you use the extended memory on your
80386-based computer as expanded memory. This expanded memory
supports all the functions of LIM-EMS, Version 3.20.
Only install this device driver if you have an application program that
uses expanded memory (EMS).
Note
Do not attempt to execute this EEMM.EXE device driver as a command.
Only enter EEMM.EXE as a device driver in your CONFIG.SYS file.
Example
To install virtual disks (1024KB each) in both extended and expanded
memory, include the following commands in your CONFIG.SYS file:
Purpose
Supports code page switching for parallel printers.
Format
DEVICE = [d:] [pa t£] PRINTER. SYS LPT*( : )
=
(type[,lhwcp2l,n^)
Description
You need to use this device driver only if you want to do code page
switching on your parallel printer (LPT1, LPT2, or LPT3).
Ifyou have the proper supporting hardware, you can install this device
between prepared code pages for your printer. See
driver to switch
Chapter 9, Code Page Switching, for more information about using this
device driver to support code page switching.
Parameter Description
LPT1
LPT2
LPT3
(You can substitute PRN for LPT1)
type Printer. Valid values:
hwcp Hardware code page built into the printer. Valid values:
Example
To up code page switching for a printer that emulates the IBM
set
ProprinterII Model 4201, such as the Epson FX-286™, and that has a
hardware code page of 437 built-in and the capability to access one
more code page, enter this command in your CONFIG.SYS file:
Purpose
Supports virtual (RAM) disks.
Format
DEVICE = [d: ] [path] VDISK.SYS [cap] [sec] [dir] [/A]
C/E]
Description
VDISK.SYS sets up an area in RAM memory that can be used to
simulate the operations of a real disk drive. This area, once established,
is commonly referred to as a virtual disk or a RAM disk.
The advantage of using a virtual disk is speed. Because RAM memory
can be accessed quickly by the computer, all disk read/ write operations
are performed many times faster than using an actual disk. However,
the contents of RAM memory are lost each time your computer is reset
or turned off.
The parameter cap represents the size of the virtual disk in kilobytes.
The range is from 1 to the amount of memory available on your
computer. If you don’t specify a cap value, the default of 64KB is
The parameter sec selects the sector size in bytes. Valid sizes are 128,
256, or 512. If you omit a size or enter an incorrect size, the default
value of 128 is assigned.
by the virtual disk. Acceptable values are from 2 to 1024. If you do not
specify dir, a default value of 64 is assigned.
16.
CONFIG.SYS file, you see messages similar to these each time you turn
on or reset your computer:
To configure your system with more than one virtual disk, simply add
the required number of DEVICE = VDISK.SYS commands to your
CONHG.SYS file. The only limit to the number of drives you can
install is the amount of RAM memory available.
Example
To install a virtual disk of 160KB capacity with 512 sectors and 64
directories in standard memory, place the following command in
CONHG.SYS:
DEVICE = VDISK.SYS 160 512 64
CALL 7-9
ECHO 7-10
FOR 7-12
GOTO 7-14
IF 7-15
PAUSE 7-17
REM 7-19
SHIFT 7-20
You can create a batch file using a text editor, such as EDLIN, or using
the COPY command, as shown here. When you create a batch file, you
must include an extension of .BAT. When you run the batch file, you
type the filename only; you don’t type the file extension.
To create a batch file to format and check a new disk, follow these steps:
FORMAT B: /V
CHKDSK B:
REM and PAUSE are batch file commands described later in this
chapter.
3. After typing the last line, press Ctrl Z followed by Enter to save
the batch file. MS-DOS displays the following message:
lFile(s) copied
CHECKNEW
MS-DOS executes the commands in sequence just as if you typed
each line as an individual command.
• To execute a batch file, you type only the filename and not the
extension.
• If you press Ctrl C while a batch file is running, MS-DOS asks you
to confirm that you want to terminate the batch process.
• You can specify the name of another batch file as the last command
in a batch file. MS-DOS will then execute the next batch file after it
• You can use any of the redirection symbols ( < > ) in a batch file. !
store the batch file in a different directory than where the MS-DOS
command is located. Otherwise, you will not be able to execute the
batch file.
the date and time prompts. (If MS-DOS does not find an
AUTOEXEC.BAT file, then it displays the date and time prompts.)
Because MS-DOS does not prompt you for a current date and time if
you start with an AUTOEXEC.BAT file, it’s a good idea to add these
two commands to your AUTOEXEC.BAT file. MS-DOS needs this
information to keep your directories current. See Chapter 4,
Alphabetical List of MS-DOS Commands, for more information on the
date and time commands.
2. Now type the following lines pressing Enter after each line:
DATE
TIME
PATH = C:\;C:\MSD0S;A:\
PROMPT [$P]
CLS
XTREE
3. After the last line, press Ctrl Z followed by Enter to copy these
lines to the AUTOEXEC.BAT file.
When you start your computer with this AUTOEXEC.BAT file,
MS-DOS automatically performs the following tasks:
1. Asks you to enter the date and time.
3. Sets your system prompt to the current drive and directory with
brackets.
2. Type the following command lines pressing Enter after each line:
TYPE %2 !
FIND "%1" > 13
TYPE %3 !
SORT > PRN
DEL %3
3. Assume the following file, named CUSTOMER, exists on drive A:
DEL TEMP.FIL
specified) and the filename of the batch file. (In the above example,
%0 is SORTER.)
• If a filename or parameter in the batch file has a percent sign in it,
you must type the percent sign twice. For example, to specify the file
For example, to create a batch file that moves a file you want to delete
into a separate directory, follow these steps:
ECHO OFF
ECHO Before using this batch file,
ECHO you must specify the directory.
ECHO At the MS-DOS prompt, type:
ECHO SET DELDIR = directory
ECHO Press Ctrl C to exit if you
ECHO need to set DELDIR.
PAUSE
COPY %1 ^DELDIR#
DEL %1
DIR /W #DELDIR$
ECHO Complete
MD \DELETED
5. Use the SET command to specify a directory named DELETED:
MYDEL REPORTIO.SLS
MS-DOS automatically replaces the %DELDIR% parameter with
the directory named DELETED.
Purpose
Allows one batch file to call another batch file without ending the first
batch file.
Format
CALL [d:]lpath~\ filename [ arguments ]
Description
You can use this command to execute one batch file from another batch
file. MS-DOS executes the specified batch file and then returns to the
calling batch file.
You can specify the CALL command on any line of a batch file.
The file that you call must be a batch file (that is, it must have a .BAT
extension).
A batch file can call itself. Be careful that the batch file eventually
terminates.
Note
Do not use piping or redirection with the CALL command.
Example
Tire following sequence of commands sends control to the ERRFORM
batch file if an error occurs when you format the diskette in drive A:
ECHO OFF
FORMAT A: /S
IF ERRORLEVEL 1 CALL ERRFORM
ECHO End of batch file
After the ERRFORM batch file is executed, control returns to the
ECHO command that follows the CALL statement.
Purpose
Turns on and off command echoes on your screen.
Format
ECHO [ON]
ECHO [OFF]
ECHO [ message ]
Description
Use ECHO to control the display of batch file commands on the
screen. Normally, MS-DOS displays, or echoes, commands in a batch
file while they are executing. When you turn on or reset the system,
ECHO is on.
Type ECHO OFF to turn this feature off. Type ECHO ON to turn it back
on.
You can display the current setting of the command by typing ECHO
without the ON or OFF parameter.
If you are using a batch file, you can type ECHO message to display
messages during the execution. These messages are displayed on the
standard output device regardless of the ECHO setting.
Thiscommand does not. affect the messages that are produced during
command execution.
Examples
Include ECHO in a batch file such as this one:
ECHO OFF
REM Command display off
TREE B:
ECHO ON
TREE B:
Purpose
Performs a single repetitive operation on a set of files, devices, or system
parameters.
Format
FOR %%o IN set DO command
Description
Use the FOR command to repeat certain batch operations for each item
in a list. The format of this command means FOR each item IN a set of
items DO the specified command.
the variable is set to each matching pattern from disk. You can only use
• or ? in one item in the set; FOR ignores any other item in the set.
You must include two percent signs (%%) so that after batch parameter
(%0-%9) done, one percent sign (%) remains. If you enter
processing is
only one percent sign, such as %f, it appears as an error (bad parameter
reference). MS-DOS discards the %f, which makes it unavailable when
you execute FOR. However, if you use FOR outside a batch file, you
only need to type one percent sign.
Examples
To assemble all files with the extension .ASM, type:
Purpose
Jumps to a labelled line within the same batch file.
Format
GOTO label
Description
Use this command to skip to another location in your batch file.
If you do not define the specified label in the batch file, MS-DOS
displays the error message Label not found and terminates the
batch file.
You define a label using the colon as the first character on a line
followed by the label name (-.label). MS-DOS ignores the remainder of
the line following the colon except when searching for a label. In this
way, you can also use the colon to enter comments in your batch file.
Example
The following sequence of commands sends control to the END
statement only if no errors occur when you format the diskette in
drive A:
:BEGIN
ECHO OFF
FORMAT A: /S
IF NOT ERRORLEVEL 1 GOTO END
ECHO AN ERROR OCCURRED DURING FORMATTING.
:END
ECHO END OF BATCH FILE.
Purpose
Executes a second command depending on whether a specified
condition is true or false.
Format
IF condition command
Description
Use this command to test for some logical condition (such as an error in
a previous program or the existence of a file), and then to execute
another command depending on the results of the test. You can enter
any valid MS-DOS command. The condition parameter is one of the
following:
false.
Examples
To display a message based on whether or not the file called 620.TXT
exists, type the following and press Enter:
If the previously executed program did not have an exit code of three or
higher, then link the file identified by the first replaceable parameter.
Purpose
Suspends execution of the batch file.
Format
PAUSE [ comment ]
Description
Use PAUSE to suspend the execution of your batch file until you press
any key. Use this command in your batch file when you need to change
diskettes or perform some other action.
After you perform the desired function, press any key to continue.
You can terminate a batch job at any time. Just press Ctrl C. You see
the prompt:
DIR A:
ECHO Display the directory of drive B next
PAUSE
DIR B:
Purpose
Adds remarks to batch files.
Format
REM [comment]
Description
Use this command to add comment lines in a batch file.
The only punctuation you can use in the comment are spaces, tabs, and
commas.
Note
If ECHO is off, the REM comment is not displayed.
Example
You can enter the following sequence of commands in your batch file:
The remark lines tell you what the file does and gives the name of the
file.
Purpose
Enables more than 10 replaceable parameters within a batch file.
Format
SHIFT
Description
Use this command to shift batch file parameters up one place. SHIFT
makes it easier for a batch file to process a list of parameters that can
vary in number. SHIFT changes the replaceable parameters by shifting
up each value for %0 through %9.
Example
If your data file parameters are:
X =
%i = y
%2 = z
%3 -% 9 are empty
*0 = y
%i = z
%2-%9 are empty
SHIFT commands.
DEBUG 8-3
EDLIN 8-23
EXE2BIN 8-43
LINK 8-45
Command Description
You can use the EDLIN editor to create any text files, including your
system files such as AUTOEXEC.BAT and CONFIG.SYS.
Normally, the DEBUG, EXE2BIN, and LINK commands are used only
by experienced programmers.
Purpose
Monitors and modifies the actual content of computer memory.
Format
[d;] [path]DEBUG [[d:] [path] filename]
Description
Use DEBUG to debug programs. This utility allows you to test binary
and executable object files. Additionally, you can alter the contents of
files and disks (this is called patching) as well as change CPU registers.
You can use these two control codes with the DEBUG commands:
• Ctrl C aborts operation of a DEBUG command.
• Ctrl S halts the scrolling of the display. You can restart the display
by pressing any key other than Ctrl C or Ctrl S.
DEBUG
The DEBUG program loads and presents you with a hyphen (-)
prompt.
2. Use the Name (N) command along with the filename, and include
the appropriate parameters. At the hyphen prompt, type the
following and press Enter.
N filename parameters
N TESTFILE.EXE /D
The second way to start DEBUG is to load DEBUG and the specified
1. At the command prompt, type the following and press Enter (you
do not use the N command when you start DEBUG in this
manner):
DEBUG TESTFILE.EXE /D
This loads both the file TESTFILE and the double-precision
routines for the /D parameter. It’s important to use such a
parameter because the file is different if you do not give the /D
parameter command.
G [ = address [address . .
.]] Go
H value value Hex
I value Input
L [address [drive record record]] Load
M range address Move
N filename [filename] Name
O value byte Output
P Proceed
Q Quit
R [register-name] Register
S range list Search
T = address] [value]
[ Trace
U [range] Unassemble
W [address [drive record record ]] Write
dcs:100 110
d cs 100 110
:
d,cs:100,110
dcs:100 cs:110
A
error
You can use the following command parameters with DEBUG:
address
This is a two-part designation consisting of either an alphabetic
segment register designation or a 4-digit segment address, plus an
offset value. If you omit the segment designation or segment
address, DEBUG uses the default. DS is the default for all
100
CS:0100
04BA:0100
You must enter a colon between a segment designation (whether
numeric or alphabetic) and an offset value.
byte
This is a 2-digit hexadecimal value that DEBUG places in or reads
from an address or register.
drive
This is a 1-digit hexadecimal value identifying the drive a file loads
from or writes to. The valid values are: 0 = A:, 1 = B:, 2 = C:,
3 = D:, and so forth.
list
ecs 100 42 45 52 54 4l
:
f cs 100 IFF 42 45 52 54 4l
:
CS:100 110
CS 100 L 10
:
CS 100
:
CS 100 CS 100
: :
A
error
The limit for range is 10000 hex. To specify a value of 10000
hex, type 0000 (or only 0).
record
This is a 1- to 3-digit hexadecimal value, which you use to indicate
the logical record number on the disk and the number of disk
sectors you want to write or load. Logical records correspond to
sectors. However, their numbering differs because they represent the
entire disk space.
require quotation marks to delimit within a string, you can use two
sets of quotation marks or a combination. For example, the
value
This is a hexadecimal value of up to 4 digits. Use this parameter to
specify a port number or the number of times a command repeats
its function.
Format: A [address]
If DEBUG detects a format error, it points out the error and redisplays
the current assembly address.
D (Dump)
Displays a portion of memory.
Format: D[ range']
Use this command to display the contents of the region of memory you
specify in range. If you omit range, DEBUG displays 128 bytes starting at
the first address (DS:100) after the address displayed by the previous
Dump command.
The Dump display contains two portions. Each byte is shown in
•d
E (Enter)
Enters a value into memory.
If you omit list, DEBUG displays the specified address and its contents.
It then repeats the address on the next and waits
line for your input.
You can respond in one of the following ways:
F04BA:100 L 100 42 45 52 54 4l
DEBUG fills memory locations from 04BA:100 to 04BA:1FF with the
values in the list until all bytes are filled.
G (Go)
Allows you to execute a program at an address you specify.
H (Hex)
Displays the sum and difference of two hexadecimal values.
02A9 0095
Format: I value
Use this command to input and display one byte from the port you
specify in value. You can specify a 16-bit port address.
L (Load)
Loads a file into memory.
Usethis command to load a file into memory. After the file loads, the
BX:CX registers contain the number of bytes read. You must name the
file with the N command. DEBUG formats a filename in a file control
block at CS:5C.
Ifyou type the L command without any parameters, DEBUG loads the
filespecified by the N command into memory beginning at address
CS: 100 and sets the BX:CX registers to the number of bytes read. If you
type the L command and include an address parameter, loading begins
at the memory address you specify.
If you type all the parameters, absolute logical disk sectors load, not a
file. The records are taken from the drive you specify. DEBUG begins
loading with the first record and continues until the number of sectors
you specify in the number parameter load.
For example, to load the file TEST1.COM after DEBUG loads, type
the following commands:
-NTEST1.COM
-L
The N command names the file to load and then the L command
carries out the actual loading process.
Use this command to move the block of memory from range to the
location beginning at the address. This command copies data from one
area into another and writes over the new addresses.
not have new data written to them, the original data remains.
N (Name)
Assigns new filenames.
• You can use the Name command to assign a filename for a later
Load or Write command. Thus, if you start DEBUG without
naming a file, then you must use the N command before you can
load a file.
-NFILE1.EXE
-L
-N0NE.DAT TWO. DAT
-G
Although the Go command causes FILE1.EXE to execute as if you
typed ONE DAT and TWO DAT at the MS-DOS command level, this
. .
Write command at this point, it saves FILE1.EXE the file you intend —
to debug — with the name ONE.DAT. To avoid this result, always
execute a Name command before either a Load or a Write command.
O (Output)
Outputs a value.
Use this command to send the byte you specify to -the output port you
identify in value. A 16-bit port address is allowed.
Format: P
Use this command to trace aprogram while it executes so you can see
the contents of all registersand flags next to the decoded instruction.
Interrupts, subroutine calls, repeat-string instructions, and loop
instructions are treated as a single operation. (To trace individual steps,
use the Trace command.) Control is returned to the instruction
immediately after the called routine. This is extremely useful in tracing
across system calls and procedures.
Q (Quit)
Exits DEBUG.
Format: Q
Use this command, which has no parameters, to exit DEBUG and
return to the command level without saving the file currently in
operation.
R (Register)
Displays or alters the contents of CPU registers.
Format: R \_register-name~\
Use this command to display the contents of one or more CPU
registers. If you do not type a register-name the R command dumps the
,
register save area and displays the contents of all registers and flags.
If you type a register-name, the 16-bit value of that register appears in hex
and a colon appears as a prompt. You can type a value to change the
register, or press Enter to leave the register unchanged.
AX DX SI ES IP
BX SP DI SS PC
CX BP DS CS F
The flags and their codes for SET and CLEAR are:
Overflow OV NV
Direction DN Decrement UP Increment
Interrupt El Enabled DI Disabled
Sign NG Negative PL Plus
Zero ZR NZ
Auxiliary Carry AC NA
Parity PE Even PO Odd
Carry CY NC
S (Search)
Searches for a value.
04BA:0104
04BA 010D :
T (Trace)
Traces a program.
The T command uses the trap flag of the 8088 microprocessor, which
means you may also trace instructions stored in ROM.
U (Unassemble)
Converts memory into assembly language mnemonics.
Format: U [ range ]
Use this command to convert the bytes in memory to the
corresponding source statements, showing addresses, byte values, and
mnemonics. You must be familiar with assembly language mnemonics to
understand the output from this command.
W (Write)
Writes a file.
you use the W command with just an address, then the file begins
writing at that address. If you use a G or T command, BX:CX must be
reset before using the Write command without parameters. Note that if
a file isloaded and modified, the name, length, and starting address are
all set correctly to save the modified file (as long as the length has not
changed).
You must name the file to be written either when loading DEBUG or
with the N command. In both cases, DEBUG lists the filename in a file
control block at CS:5C.
Warning
Writing to absolute sectors is extremely dangerous. This process
bypasses the file management portion of MS-DOS.
Example
The following example shows how you can use DEBUG to load and
alter a file and then re-save it on disk. This procedure is commonly
5. Alter the file with the Edit, Fill, and Assemble commands.
8. Put the file back on to the disk with the Write command.
The first parameter tells DEBUG where to start the dump. The
parameter following the L is the number of bytes to display. The first
two lines of the display consist of the program to print the message and
do not mean anything in this form. The message itself starts on the
third line; you can read it in the block at the right of the screen.
0A63:0146 2E CS:
0A63:0147 0D0A0A OR AX,0A0A
0A63:014A 0A07 OR AL,[BX]
0A63:014C 0000 ADD [BX + SI],AL
0A63:014E 0000 ADD [BX + SILAL,
Enter.
The other thing you often need to display when you are using DEBUG
is the condition of the registers and flags of the CPU. The Register
command lets you display and alter the register contents. To see the
contents of all the registers and flags, type R and press Enter. You see:
the second row. When you save a CX and BX tell DEBUG how
file,
much to save. The IP register indicates where DEBUG looks for the
next instruction to execute. The DS, ES, SS, and CS registers vary
depending on where in memory DEBUG loads. The assembly language
mnemonics on the last line are the instructions to which the IP register
is currently pointing.
—
Altering the program To alter the program to display a shorter
message, followed by just a carriage return and a line feed, you need
to
change the program by putting in the new message, editing in the
carriage return and line-feed codes, and changing the byte
containing
the length of the message. (If you look at the dump from the Dump
command, this is located at address 10 1H.) To change the message to
This is a test message, you must alter bytes starting at 12FH. To edit text
in this way, put it in single quotes. Type E 12F '
message and '
press
Enter.
Ifyou dump the program again with the D command, you see the
altered message.The byte following the end of the new message is at
location 137H. To put in the carriage return and line feed codes, type
E 136 and press Ent6T. DEBUG responds with:
0A63:0136 72.
Type the new value, 0D (carriage return), and press the spacebar to
display the next byte. Type 0A (line feed), then press EntSI". The screen
of the message by typing E 101 and pressing Enter. Type 18 and press
Enter.
You can now try the program using the Go command. (Reset the IP
-F 120 135 41
-F 120 L16 'az'
Writing the file to disk—When you finish correcting the program,
reset the IP register to the beginning of the program using the R
command. Then set the CX register to tell DEBUG how many bytes to
save. The program is still 50H bytes long, so type R CX and press
Enter. You see CX 0000. Type 50 and press Enter.
Use the R command alone to check that the registers are set correctly,
Purpose
Creates and edits text files for your system.
Format
[d:] [pa thi] EDLIN [d:] [path] filename [/B]
Description
The EDLIN utility is a line editing program that
comes complete with
its own subcommands. You can use EDLIN
to create, change, and
display files, whether they are source programs like a BASIC program or
text files you create using a word processor.
EDLIN is useful only when you want to edit files that are in ASCII
format. This is true of some word-processing and GW-BASIC files.
EDLIN is of limited use with other types of files.
Use the /B switch when editing files that may have end-of-file characters
in the text. The /B switch tells EDLIN to ignore Ctrl Z (1AH).
• Create new source files and save them (you can even create a
BASIC program with EDLIN)
• Update existing files and save both the updated and original files
When you create or edit text in files, EDLIN divides the text into lines.
Each line can contain as many as 253 characters. EDLIN displays line
numbers during the editing process but does not actually record them in
the file. EDLIN automatically renumbers lines in the file when you
insert or delete text.
New file
*
You can now type lines of text into the file. To begin entering text, use
To edit an existing file, type EDLIN and the name of the file you want
to edit. EDLIN loads the file into memory and displays this message on
your screen:
You can then edit the file using the EDLIN commands.
If the file is too large to be loaded into memory, EDLIN loads lines of
the file until memory is three-quarters full; then it displays the *
prompt. You can then edit the portion of the file in memory.
To edit the remainder of the file, you must first save the edited lines.
EDLIN then loads the unedited from disk into memory. Use the
lines
When you complete the editing session, you can save the original and
the updated (new) file to disk using the End command. The original
filename now includes a .BAK extension, and the new file has the
filename and extension you originally specified with the EDLIN
command. Do not erase any previous .BAK files until the end of the
editing session or until you require extra disk space.
When editing a new file or an existing one with EDLIN, remember that
it is acceptable to use path names along with the filename. For example,
typing EDLIN \WORDPROC\PERSONAL\RESUME TXT . allows you
to edit RESUME.TXT in the subdirectory PERSONAL.
Command information—Table 8-2 provides a summary of the
EDLIN commands.
Table 8-2. EDLIN commands
Command Function
line Edits line number
A Appends lines
C Copies lines
D Deletes lines
E Ends editing; saves all changes
I Inserts lines
L Lists lines
M Moves lines
P Inserts page breaks
Q Quits editing; does not save changes
R Replaces lines
S Searches text
T Transfers text
W Writes lines
This option indicates a line number that you type. You can enter a
comma or a space to separate line numbers from other line
numbers, other options, and from the command.
• Type any whole number less than 65534. If you specify a number
greater than the largest existing line number, then EDLIN assumes
you mean the line after the last existing line number.
• Type a period (.) to indicate the current line number. The current
line is the last line edited. An asterisk (*) between the line number
and the first character appears on your screen to mark the current
line.
• Type a pound sign (#) to indicate the line after the last line number
in the file. This has the same effect as specifying a number larger
• Press Enter without any line specifiers to direct EDLIN to use the
default value for the command.
7
The string option represents text you want to find or replace, or the
replacement text. Use the string option only with the Search and
Replace commands. You must press Ctrl Z or Enter to end each
string. Do not leave spaces between strings or between a string and
its command letter, unless you want to include those spaces as part
of the string.
• You can reference line numbers relative to the current line. Use a
minus sign (-) with a number to indicate lines before the current
line. Use a plus sign (+) with a number to indicate lines after the
current line. For example, the command -10,+10L lists 10 lines
before the current line, the current line, and 10 lines after the
current line.
To search for This string and then display 5 lines before and 5 lines
after the line containing the matched string, type SThis String
and press Ctrl Z; then type -5 , +5L.
EDLIN also makes use of the special editing keys. See Chapter 1 for a
complete description of how to use these keys for editing.
A (Append)
Adds data to a file.
Format: [fl]A
Use this command to append, or add, a specific number of lines (n) from
disk to the you are editing in memory. EDLIN adds these
file lines at the
end of the lines currently in memory.
This command is meaningful only if the file you are editing is too large
to fit into memory.
Examples: After you save edited lines to disk with the Write command,
type 20A at the * prompt to append the next 20 lines to memory.
If you do not specify count , EDLIN copies the lines once. If you omit
begline or endline, the current line is the default. After the copy, the file
is renumbered automatically.
If the line numbers overlap, the message Entry error displays. For
example, typing 3*20, 15C produces this error message.
Ifyou want to place text within other text, specify the line before the
linewhere you want the copied text to appear. In other words, the
copied text is inserted after the line you specify.
Examples: Assume that the following file exists and is ready for you to
edit:
Ifyou omit begline, it defaults to the current line (the line with the
To delete begline only, omit endline. After the deletion, the line
asterisk).
immediately following the deleted section becomes the current line with
the same line number as the original begline.
Examples: Assume that the following file exists and is ready for you to
edit:
Type , 6D to delete the lines from the current line, which is now 3, to
E (End)
Exits EDLIN.
Format: E
Use this command to save the edited file on disk, rename the original
input file to filename .BAK, and then exit EDLIN. If you originated this
file during the editing session, EDLIN does not create a .BAK file.
session. If you did not specify a drive, then EDLIN saves the file on the
default drive. You can copy the file to a different drive using the
file. If the disk does not contain enough free space, the disk writing
process aborts and parts of the edited file are lost.
I (Insert)
Inserts text.
Format: [line]
Use this command to insert text immediately before the specified line. If
you do not specify line, new lines are inserted before the current line. If
line is any number larger than the last line number, or if you use a
pound sign (#) to specify line, the inserted lines append to the end of the
file. In this case, the last inserted line becomes the current line.
If you are creating a new file, you must enter the I command before you
can type (insert) text. Text begins with line number 1 and successive line
numbers appear automatically each time you press Enter.
EDLIN remains in insert mode until you press Ctrl C. After the insert
is complete and you exit insert mode, the line immediately following the
inserted lines becomes the current line. All line numbers following the
inserted section are incremented by the number of inserted lines.
Examples: Assume that the following file exists and is ready for you to
edit:
Now, type (the D and I commands) as the text for line 5. When line
number 6 appears, press Ctrl C to end the insertion.
Both formats tell EDLIN to start appending after the last line. In the
second case, 20 is larger than the last line number that exists in the file,
L (List)
Displays text.
, endline L
If you omit endline the screen displays 23 lines starting with begline:
begline L
If you omit both parameters, 23 lines are displayed. These include the
1 1 lines before the current line, the current line, and the 1 1 lines after. If
there are fewer than 1 1 lines before the current line, more than 1 1 lines
after the current line are displayed to make a total of 23.
Examples: Assume that the following file exists and is ready for you to
edit:
M (Move)
Moves text to a new location.
P (Page)
Pages through text.
Format: Q
Use this command to quit the editing session without saving any editing
changes you have made. You exit EDLIN, and the default drive prompt
appears.
Because using this command has drastic effects, EDLIN prompts you to
make sure that you don’t want to save the changes. Press Y if you want
to quit the editing session. Press N or any other character (except Y) if
you want to continue the editing session.
Warning
When you start this command, EDLIN erases the .BAK file associated
with the specified filename. If you reply Y to the abort message, the
previous .BAK file no longer exists.
R (Replace)
Replaces text.
If you omit stringl Replace takes the old stringl as its value. If there isn’t
a prior stringl, the replacement process terminates immediately. If you
omit string2, you can press Enter to end stringl.
If you omit begline in the range argument, then begline defaults to the
line after the current line. If you omit endline, # is the default. This is the
same as begline/. Remember, # indicates the line after the last line of the
file.
Ifyou use the question mark (?) option, the Replace command stops at
each line with a string that matches stringl, displays the line with string2
in place, and then displays 0 . K . ? as the prompt.
Ifyou press Y or Enter, then string2 replaces stringl, and EDLIN finds
the next occurrence of stringl. Again, the 0 . K . ? prompt displays. This
process continues until the end of the range or until the end of the file.
After finding the last occurrence of stringl, EDLIN displays the asterisk
prompt.
stringl (even if stringl occurs more than once in a line). EDLIN replaces
Examples: Assume that the following file exists and is ready for you to
edit:
4: Delete or Insert
5: (the D or I commands)
5:#(the D or I commors)
8: the insert commor can place new lines
4: Delete or Insert
O.K.? Y
5: (The D or I commands)
O.K.? Y
5: (The D or I commors)
O.K.? N
8: The insert commor can place new lines
O.K. ? N
*
Now, type the List command (L) to see the result of all these changes.
You should see the unchanged lines and the new ones.
S (Search)
Searches for a string of text.
Use this command to search the specified range of lines for the specified
string of text. You must press Enter to end the string.
The first line that matches string displays and becomes the current line.
If you do not specify the question mark option, the Search command
terminates when it finds a match. If it cannot find a match, you see the
message Not found.
Ifyou include the question mark option (?) in the command, EDLIN
displays the first line with a matching string and the 0 . K . ? prompt is
displayed.
If you press either Y or Enter, the line becomes the current line and the
search terminates. If you press any other key, the search continues.
the same as begline, #Sstring. If you omit string, Search takes the old
string if there is one. (Note that old refers to a string specified in a
previous Search or Replace command.) If an old string does not exist,
Examples: Assume that the following file exists and is ready for you to
edit:
To search for several occurrences of the string and, type l?Sand and
press Enter. The result is:
O.K.?
Now press Y to terminate the search. You see the EDLIN * prompt.
To search for string XYZ without the verification (O.K.?), type SXYZ .
EDI IN reports a match and continues to search for the same string
when you type the S command with no options. This is because string
defaults to any string previously specified in a Replace or Search
command.
T (Transfer)
Moves text into the current file.
Use this command to insert, or merge, the contents of filename into the
you are currently editing at the line you specify. If you omit line,
file
another file or into the text you are typing. The text inserts at the line
number you specify in line and the lines automatically renumber.
Examples: Type TNEW TXT . to insert text from a file called NEW.TXT
at the current line.
W (Write)
Writes text to disk.
Format: [ 22 ] W
Use this command to write a specific number of lines (n) to disk from
the lines that you are editing in memory. EDLIN writes the lines to the
disk beginning with line number 1.
Examples: Type 100W to save the first 100 lines of text to disk.
Purpose
Converts .EXE files to .BIN files.
Format
[d: ] [path'] EXE2BIN [d:] [path] filename
[d: ] path ] filename ]
Description
Use this command only if you want to convert your executable (.EXE)
files to binary format. This conversion saves disk space and provides
faster program loading.
The first file you name is the input file. If you do not specify an
extension, it defaults to .EXE.
If you do not specify a drive, this command uses the drive of the input
file. If you do not specify an output filename, the command uses the
input filename. If you do not specify a filename extension in the output
filename, the new file takes the extension .BIN.
To execute the new .BIN file, you need to rename it with an extension
of .COM.
The input file must be in a valid .EXE format as produced by the LINK
command. The resident, or actual code, and data part of the file must
be less than 64K. There must be no STACK segment.
• If you specify CS:IP as 0000: 100H, this command runs the file as
a .COM file with the location pointer set at 100H by the assembler
statement ORG; the first 100H bytes of the file delete. You cannot
provide segment fixups because .COM files must be segment
relocatable. Once the conversion is complete, you may rename the
resulting file with a .COM extension. Then, the command
processor can load and execute the program in the same way as
the .COM programs supplied on your MS-DOS system diskettes.
Purpose
Combines object code program modules.
Format
[d:] [pa th] LINK [filename[ , filename . .
.]
[/ switch . . .]]
Description
The MS-DOS LINK utility is a program that does the following:
When you write a program, you write it in source code, either in a high-
level programming language such as BASIC or in assembly language. If
you use a high-level language, your source code passes through a
compiler. you use assembly language, the source code passes through
If
You may wish to link, or combine, several programs and run them
together. LINK enables you to do this. LINK combines several object
modules into one relocatable load module, which is then given the .EXE
extension.
The following figure illustrates the various parts of the LINK operation:
memory.
Each segment has a name and a class name. LINK loads all segments
into memory by class name from the first segment it encounters to the
last. All segments with the same class load into memory contiguously.
Files used by LINK—You can direct LINK to use general files. You
can do the following:
If you don’t specify a file extension for the input, or object file, LINK
recognizes the following default extensions:
.OBJ Object
.LIB Library
LINK appends the following default extensions to the Run and List
output files:
•EXE Run
.MAP List
LINK uses available memory first. If your files create an output file that
exceeds available memory, LINK creates a temporary file. It names this
file VM.TMP and puts it on the disk in the default drive. If LINK
creates VM.TMP this message appears:
VM.TMP has been created.
Do not change disk in drive, d:
Run File:
LINK writes the contents of VM.TMP to this file. VM.TMP is a
working file only and LINK deletes it at the end of the linking session. If
you do not care to save the contents of VM.TMP, do not enter a
filename for the Run File prompt.
Warning
Do not use VM.TMP as a filename for any file. If you do and LINK
requires a temporary file, LINK deletes any existing VM.TMP file to
create a new file.
Starting LINK—To start LINK; you must enter the LINK command
and its parameters. You do this in one of three ways:
• You can type LINK only and then enter the parameters in response
to individual prompts. Type LINK and press Enter.
• You can type theLINK command and all its parameters on the
command line. Type LINK filenames [/ switches'] and press
Enter.
as shown).
This format of the LINK command can easily fill up the command
line. You can press Ctrl J to move the cursor to the beginning of a
new line without actually terminating the line. After you type all
• You can create a response file that contains all the necessary
parameters. Then type LINK and the name of the response file on
the command line. Type LINK @ filename and press Enter.
When specifying LINK commands, you can use the plus sign (+), the
semicolon (;), and Ctrl C to control the link process.
• You can use the plus sign (+) as well as blanks to separate filenames.
You can extend the response to the Object Modules and
also
Libraries prompts using the plus sign. With a large number of
responses, type a plus sign and
Enter at the end of the line.
press
LINK repeats either the Object
Modules or Libraries prompt and
you can continue to type responses. Once you enter all the modules
to link and libraries to search, be sure to end the response line with
a module name (not with a plus sign) followed by Enter.
• Use Ctrl C at any time to abort the link session. If you type an
erroneous response, such as an incorrect filename, you must press
Ctrl C to exit and then restart LINK. If you make an error before
you press Enter, you can backspace to delete the erroneous
characters on that line only.
After you enter the last parameter and press Enter, LINK begins the
linking process. When it’s complete, LINK exits to the operating system.
When you see the command prompt, you know that the LINK process
was successful. If the link session is unsuccessful, an appropriate error
message appears.
Object module — The first parameter must be the name of the object
module. The prompt you see is the following:
Separate the object modules by blank spaces or plus signs (+). If a plus
sign is the last character you type, the prompt reappears. There
is no
Run file— The next parameter is the name of the Run File. The prompt
you see is:
List file — The third parameter is the name of the List file. The prompt
you see is:
Thisfile contains an entry for each segment in the input (object) modules.
Each entry shows the addressing in the Run file.
If you don’t enter a List filename, LINK does not create a map file.
Libraries [.LIB]:
You can enter up to eight library filenames. You must create the library
files with a library utility. LINK assumes that the filename extension
is .LIB for library files. If you press Enter only, LINK searches all files
Separate the library filenames with a blank space or a plus sign (+). If a
plus sign is the last character you type, the prompt reappears.
LINK searches your library files in the order you list them to resolve
external references. When it finds the module that defines the external
symbol, LINK processes that module as another object module.
If LINK cannot find a library file on the disk in the specified disk drive,
a parameter, you must precede each switch with a forward slash (/).
You can abbreviate all the switches. The only restriction is that an
abbreviation must be sequential from the first letter through the last letter
you type; you cannot have gaps or transpositions. For example, legal and
illegal abbreviations for the DS ALLOC A H switch include: 1
Legal Illegal
/D /DSL
/DS /DAL
/DSA /DLC
/DSALLOCA /DSALLOCT
The remainder of this section describes the switches you can use with
LINK.
/DOSSEG
Use this switch to tell LINK to arrange all segments in the executable file
• All segments with the class name CODE are placed at the beginning
of the executable file.
• All other segments that do not belong to the group DGROUP are
placed immediately after the CODE segments.
• All segments that belong to the group DGROUP are placed at the
end of the file.
/DSALLOCATE
Use this switch to tell LINK to load all data at the high end of the data
segment. Otherwise, LINK loads all data at the low end of the data
segment. At DS pointer is set to the lowest possible address
runtime, the
in order to use the entireDS segment. Use of the /DSALLOCATE
switch in combination with a low default load (that the /HIGH switch is,
Note
Your application program may dynamically up to 64KB (or the
allocate
amount of memory
actual available) less the amount allocated with
DGroup.
Packed executable files may be smaller and load faster than other files.
packed. Other programs may not be shorter. You cannot use the
Microsoft Symbolic Debug Utility (SYMDEB) with packed files.
/HELP
Use this switch to view a list of the available options on your screen. Do
not include a filename when using this switch.
/HIGH
This switch places the Run file as high as possible in memory. Otherwise,
LINK places the Run file as low as possible.
Note
Do not use the /HIGH switch with Pascal or FORTRAN programs.
/LINENUMBERS
This switch includes line numbers and addresses to identify the source
statements from the input modules in the List file. Otherwise, the List file
Note
Not all compilers produce object modules that contain line number
information. In these cases, of course, LINK cannot include line numbers.
/MAP
This switch lists all global symbols defined in the input modules. If /MAP
is not given, LINK only lists errors (including undefined globals).
LINK lists the symbols alphabetically at the end of the List file. For each
symbol, LINK lists its value and its segment:offset location in the Run file.
/NOGROUP
Use this switch (which is short for NO GROUP ASSOCIATION) to
ignore groups associations when assigning addresses to data and code
items.
Note
This switch exists strictly for compatibility with older versions of
FORTRAN and Pascal (Microsoft versions 3. 13 or earlier or any IBM
version prior to 2.0). Only use this option to link with object files or
libraries produced by these compilers.
/NOIGNORE
This switch (which is short for NO IGNORE CASE) tells LINK to
recognize the difference between upper- and lowercase characters. With
this switch, LINK treats TWO, two, and Two as different symbols.
Typically, you use this switch with object files created by high-level
language compilers.
/OVERLAYINTERRUPTrn
Use this switch to set the interrupt number of the overlay loading routine
to n (n can be a value from 0 to 255). This overrides the normal overlay
interrupt number of 03FH.
When LINK encounters the /PAUSE switch, you see the message:
Note
Do not remove the disk to receive the List file, or the disk containing the
VM.TMP file, if one was created.
/SEGMENTS™
Use this switch to process no more than n segments per program (n can
be any number from 1 to 1024). If LINK encounters more than n
segments, you see an error message and LINK stops. This switch overrides
the default limit of 128 segments.
/STACK
Use this switch to specify the size of stack to be created. The format is:
/STACK: number)
If you do not specify the /STACK switch, LINK calculates the necessary
stack size automatically. All compilers and assemblers should provide
information in the object modules that allow the LINK program to
compute the required stack size.
You can tell LINK how to link a program’s segments using directives that
define group associations, classes, and align and combine types. These
directives define the order and relative starting addresses of all segments
in a program. These directives, which are defined in your object modules,
work in addition to any LINK switches you provide on the LINK
command line.
Aligning Segments —LINK uses a segment’s align type to set the starting
address for the segment. The align types are byte, word, paragraph, and
page,which represent address boundaries that are multiples of 1, 2, 16,
byte in the segment. For byte and word align types, the offset may be
nonzero; for paragraph and page align types, the offset is always zero. The
frame number of a segment is the first five hexadecimal digits of the start
address specified for the segments.
LINK copies segments to the executable file in the same order that it
the same class name. Segments with identical class names belong to the
same class type and are ordered contiguously.
addresses in the segments can be accessed using an offset from the same
frame address. The result is the same as if the segments were defined as a
whole in the source file.
LINK preserves each segment’s align type. Even though the segments are
combined into one large segment, the code and data in the segments
retain their original align type. If the combined segments exceed 64KB,
LINK displays an error message.
LINK out the same combine operations for stack combine types as
carries
for public segments. The only difference for stack combine types is that
LINK copies an initial stack-pointer value to the executable file. This
stack-pointer value is the offset to the end of the first stack segment (or
combined stack segment) that LINK encounters.
If you use the stack type for stack segments, you do not need to give
instructions to load the segment into the SS register.
LINK treats segments with memory combine types exactly like segments
with public combine types. This combine type is available for
compatibility with linkers that support a separate combine type for
memory segments.
defined for it in the source file. LINK does not combine private segments.
Groups do not affect the order in which segments are loaded. For
segments to be contiguous, you must use class names and enter object
files in the correct order. LINK may even place segments that do not
belong to a group in the same 64KB of memory.
LINK processes fixups for four different references: short, near self-relative,
near segment-relative, and long.
instruction must be no more than 128 bytes from the point of reference.
LINK computes a signed, 8-bit number for the JMP instruction and
displays an error message if the target instruction belongs to a different
segment or group (has a different frame address) or if the target is more
than 128 bytes from the point of reference.
this reference and displays an error message if the data are not in the
same segment or group.
specified segment register. LINK computes a 16-bit offset for this reference
and displays an error message if either of the following conditions exists:
• The offset of the target within the specified frame is greater than
64KB or less than 0.
For a complete description of the LINK process, see the Microsoft Macro
Assembler Reference Manual.
This command line causes LINK to load the object modules, TEXTOBJ
and TABLE.OBJ. LINK then pauses as a result of the /P switch. When
you press any key, the object modules link and the /MAP switch
produces a global symbol map. The Run file defaults to TEXTEXE,
PGMLISTMAP becomes the name of the List file, and LINK searches
the library file COBLIB.LIB.
To use a response file with the LINK command, you must first create and
save the file to disk. Your response file may look like this:
Because you used the /MAP switch, LINK displays the global symbols by
name and value. For example:
• You can redirect output to the printer by responding PRN to the List
File prompt.
• You can use the /LINE switch to produce a listing of all line numbers
for all modules. (Note that the /LINE switch may generate a large
volume of output.)
A character set consists of certain letters, numbers, and symbols that are
used for typing, displaying, and printing. Your computer comes with a
built-in character set called a code page. Code page switching provides
additional character sets that your computer can use.
See Appendix D, Code Page Tables, for illustrations of the exact letters,
Code page 850, which is new with MS-DOS 3.3, contains all the
characters for most European and North and South American
countries. This code page provides additional characters that may be
useful. The countries with languages that are supported by code page
850 include Australia, Belgium, Canada (English), Canada (French),
Denmark, Finland, France, Germany, Italy, Latin America,
Netherlands, Norway, Portugal, Spain, Sweden, Switzerland (French),
Switzerland (German), the United Kingdom, and the United States
(English).
OH New
Country or Code Code
Language Page Page
Ifa file is created using a particular code page, it must be viewed in that
code page. Because multiple code pages now exist, you may need to
view existing files created with the old code page as well as new files
created with the new 850 code page. In this case, you need to use code
page switching.
Code page switching requires several MS-DOS commands and files and
isused by several commands. Your MS-DOS startup diskette includes
two code page information (CPI) files that contain data required to
prepare and select code pages:
You use the following MS-DOS commands to prepare and change the
code pages:
DEVICE = DISPLAYS YS
Installs the DISPLAY.SYS device driver, which sets the
hardware code page for your monitor. You enter this
command in your CONFIG.SYS file.
DEVICE=PRINTER.SYS
Installs the PRINTER. SYS device driver, which sets
the hardware code page for the specified printer. You
can enter one or more of these device drivers in your
CONFIG.SYS file.
MODE CODEPAGE PREPARE
Prepares one or more code pages for use with a specific
The device must be previously defined with
device. a
DEVICE command in your CONFIG.SYS file.
MODE CODEPAGE SELECT
Selects a prepared code page for a specific device. The
device and code page must be previously prepared
with the MODE CODEPAGE PREPARE command.
MODE CODEPAGE/STATUS
Displays the code pages currently prepared and
selected for a device. The device and code page must
be previously prepared with the MODE CODEPAGE
PREPARE command.
MODE CODEPAGE REFRESH
Reselects a code page that was deactivated because of a
hardware error. You may need to use this command to
restore a code page to a printer that was turned off by
mistake.
CHCP 850
MODE CODEPAGE SELECT
Selects a code page for a specific device. You must have
prepared the device with the MODE CODEPAGE
PREPARE command.
To activate code page 850 for the CON device, enter
the following command:
Configuration Commands A- 16
Device drivers A- 17
List of Commands
APPEND
External command to set a search path for data files. With the /X
switch, also sets a path for executable files.
First time:
APPEND [d:]path[;[d:]path. . .]
APPEND [;]
ASSIGN
External command to assign a new letter to a drive specification.
BACKUP
External command to back up (copy) one or more files from one disk to
another in a special, condensed format.
BREAK
Internal command to enable or disable the Ctrl C function.
BREAK [ON]
BREAK [OFF]
CALL (Batch)
Internal command used in batch processing to call one batch file from
another.
CHCP
Internal command to display or change the current code page (character
set).
CHCP [JIM]
CHDIR
Internal command to change or display the current directory.
CHDIR [ d:][path ]
CD [ d:][path ]
tables on the specified disk and produce a disk and memory status
report. Also available through MENU.
CLS
Internal command to clear the monitor screen.
CLS
COMMAND
External command to load a secondary command processor.
COMP
External command to compare the contents of one file or group of files
to another.
COPY
Internalcommand to copy one or more files to the same or another disk
and optionally rename or merge them.
CTTY device
DATE
Internal command to set or display system date.
DATE [mm-dd-yy]
DATE [dd-mm-yy]
DATE [ yy-mm-dd
DEBUG
External utility for debugging machine language programs.
DEL
Internal command to delete files.
DEL [ d :
[path] filename
DIR
Internal command to list the files in a directory.
DISKCOMP
External command to compare the contents of two diskettes. Also
available through MENU.
[d: [path ] DISKCOMP [dl: [d2:]][/l] [/8]
DISKCOPY
External command to copy whole diskettes. Also available through
MENU.
ECHO [ON]
ECHO [OFF]
ECHO [ message ]
EDLIN
External utility for creating and editing text files.
ERASE
Internal command to erase files.
EXE2BIN
External utility for converting .EXE files to .BIN files.
EXIT
Internal command to exit the command processor and return to an
application program.
EXIT
FASTOPEN
External command to speed up access to frequently used files and
directories on a hard disk.
FDISK
External command to create one or more partitions on a hard disk,
FIND
External command (called a filter) to locate a specified text string within
one or more files.
FOR (Batch)
Internal command used in batch processing to repeat certain batch
operations for each item on a list. The format means FOR each item IN
a set of items DO the specified command.
FOR %%c IN set DO command
FORMAT
External command to format disks to accept MS-DOS files. Also
available through MENU.
[d: ] [path ] FORMAT [d: ] [/B] [/S] [/V] [/l] [/4]
[/8][/N:nn][/T:nn]
GOTO (Batch)
Internal command used in batch processing to jump to another labelled
line within the same batch file.
GOTO label
GRAPH24
External command to enable printing of CGA screen graphics on a
24-pin or laser printer.
GRAPHICS
External command to enable printing of CGA screen graphics on the
specified printer.
[d: ][path] GRAPHICS [prin ter] [/R] [/B] [/P = port] [/LCD]
HDCACHE
External command to store the location and contents of requested
sectors of the hard disk in a reserved part of memory.
HELP
External command to provide information onall MS-DOS commands
IF (Batch)
command used in batch processing to execute
Internal a second
command depending on whether a specified condition is true or false.
IF condition command
KEYB
External command to load a keyboard layout into memory.
LABEL
External command to create, change, or delete the volume label on a
disk.
LINK
External utility for combining object code program modules.
MENU
Epson menu utility for performing file utilities, disk utilities, mode
settings, and help.
[d:][pata]MENU
MKDIR
Internal command to make a new subdirectory on a disk.
MKDIR [d:]pa£h
MD [d:]path
and to prepare and control code page switching. Also available through
MENU.
Parallel printer mode:
Display modes:
MORE
External command (called a filter) to display long data listings one
screen at a time.
PATH
Internal command to set a search path for programs and batch files that
are not in the current directory.
PAUSE (Batch)
Internal command used in batch processing to suspend execution and
show a prompt, so a necessary action can be performed. The specified
comment displays if ECHO is on.
PAUSE [ comment ]
PRINT
External command to print disk files on a printer while other processing
takes place. Also displays the contents of the print queue.
PROMPT
Internal command to change or reset the MS-DOS command prompt.
Omit parameters to reset the prompt.
PROMPT [string]
REM (Batch)
Internal command used in batch processing to add remark lines to
batch files.
REM [ comment ]
RENAME
Internal command to rename files.
REPLACE
External command to selectively replace or add files including
subdirectories. Also available through MENU.
RESTORE
External command to restore files copied with BACKUP command.
Also available through MENU.
RMDIR [d:]path
RD [ d:]path
SELECT
External command to format and install MS-DOS on a new disk with
the specified country information and keyboard layout.
SET
Internal command to set or display environment string values in
memory.
SETPRINT
Epson menu utility for setting printer operation parameters.
SHARE
External command to install file sharing and locking protection in
network situations.
SHIFT (Batch)
Internal command used in batch processing to enable more than 10
replaceable parameters within a batch file.
SHIFT
SUBST
External command to substitute a drive letter for a path name. Omit all
SYS
External command to transfer system files to the specified disk.
TIME
Internal command to set or display system time.
TIME [hh:^ffl[:ss[.cc]]]
TREE
External command to display the complete subdirectory tree structure
of a disk.
TYPE
Internal command to display the contents of a file on your screen.
VER
Internal command to display the MS-DOS version number.
VER
VERIFY [ON]
VERIFY [OFF]
VOL
Internal command to display a disk volume label.
VOL [d:]
XCOPY
External command to selectively copy files and, optionally,
subdirectories.
XTREE
Epson menu utility to enable file management through menus of
directory and file commands.
XTREE [d:]
XTREEINS
External utility to install XTREE for type of monitor.
XTREEINS
BREAK = ON
BREAK = OFF
BUFFERS
Configuration command to set the number of disk buffers allocated in
memory.
BUFFERS = nnn
COUNTRY
Configuration command to select display parameters that are country
dependent, such as the date and time format, currency symbols, and
decimal separator, and activate a code page.
DEVICE
Configuration command to install the specified device driver during
system startup.
FCBS
Configuration command to specify the number of file control blocks
(FCBs) that can be open at one time.
FCBS = m,n
FILES
Configuration command to set the maximum number of files that can
be open at one time.
FILES = nnn
LASTDRIVE = x
SHELL
Configuration command to specify the name and location of a
command processor.
STACKS
Configuration command to set the number of available stack frames
and their size.
STACKS = m,n
Device drivers
ANSI.SYS
Device driver that provides screen and keyboard control.
DISPLAY.SYS
Device driver that supports code page switching for the console device
(CON).
EEMM.EXE
Device driver that supports expanded memory on 80386'based
computers.
PRINTER.SYS
Device driver that supports code page switching for parallel printers.
VDISK.SYS
Device driver that supports virtual (RAM) disks.
MS-DOS utility and device error messages are listed in this appendix.
For information about error messages generated by other software, see
the documentation for that application program.
R Retry. Repeat the operation. You should use this response when
you have corrected the error (for example, with Not ready or
Write protect errors).
Note
For a few diskette device errors, the Ignore option may appear. This
prompt instead reads Abort, Retry, Ignore, Fail? Ignore tells
the computer to ignore the bad sector and pretend the error did not
occur. This may result in lost data.
Access denied
You tried to replace a write-protected, read-only, or locked file.
To change the append switch, reboot your computer. Then type the
APPEND command with the switch you want to use. Otherwise,
use the APPEND command without these switches.
Error Messages B3
APPEND/ASSIGN Conflict
You cannot use the APPEND command on an assigned drive.
Cancel the drive assignment before using the APPEND command
with this drive again.
The length of the request header passed to the device driver was
incorrect.
either the file is missing from the root directory, or the file is invalid.
Either restart the system or copy the COMMAND.COM file from
your backup MS-DOS startup diskette onto the disk used to start
MS-DOS. You will also receive this message if COMMAND.COM
has been moved from the directory it was originally in when you
started MS-DOS.
Bad or missing filename
You specified an invalid filename for the DEVICE parameter in the
CONFIG.SYS file. Check the accuracy of the DEVICE statement
in the CONFIG.SYS file.
network.
device. First, be sure your device supports code page switching, and
that it is currently on line. If the device supports code page
switching, use the MODE PREPARE command to prepare the
device for the code page. Then retry the CHCP command.
Code page xxx not prepared for system
CHCP is unable to select a code page for the system. First, make
sure that NLSFUNC installed. If you have not used the DEVICE
is
.
your system, you must use the MODE PREPARE command to
prepare the specific code page for each device on your system.
Make sure that the command syntax and limits for subfonts and
additional code pages are all correct. Also check to see if your
device supports code page switching.
Directory Full
The directory you’re working with has reached the logical limit of
the number of files it can contain. You must delete some files before
adding more.
Directory is joined
CHKDSK cannot process directories that are joined. Use the JOIN
/D command to unjoin the directories, then run CHKDSK again.
Directory is totally empty, no . or .
Check your drive and disk to make sure they are in order; then
Disk Full
Discontinue adding files, or direct the files to another disk.
diskette.
EXEC failure
MS-DOS either found an error when reading a command or the
FILES statement in the CONFIG.SYS file is set too low. Increase
the value and restart MS-DOS.
Abort).
Abort).
the diskette. If the error persists, assume the diskette is not usable
and reformat it.
File is READ-ONLY
You cannot erase or write over a read-only file. Use the Al l RIB
command to change a file’s status to read/ write through its -R
option.
cannot remove it from the queue. Check to see that you entered
the filename correctly.
You tried to run DU or MENU from a disk that does not have the
individual commands on it, or PATH has not been used to set the
proper path to these commands.
Format failure
MS-DOS could not format the diskette. This message always
displays in conjunction with an explanation as to why MS-DOS
could not format the diskette.
version of MS-DOS they were created for. You must use the correct
later versions.
Incorrect parameter
You specified an incorrect parameter.
Insufficient memory
There is not enough memory computer to perform the
in your
specified operation. Before retrying this operation, you must free
memory by deleting files. In EDLIN, you may be able to free
memory by entering a W (write) command followed by an A
(APPEND) command.
Internal error
This message indicates an internal logic error in the FC utility. You
may have used wildcard characters when specifying the filename.
Invalid argument
You have specified an invalid argument. Check the correct syntax
of the command and try again.
Invalid COMMAND.COM
Insert COMMAND.COM disk in drive d : and strike
any key when ready
The application you have just run used up most of memory and
wrote over the COMMAND.COM file. MS-DOS needs to reload
COMMAND.COM, but cannot find the file on the diskette or the
file found is invalid. Insert a system diskette with
COMMAND.COM into the specified drive This version of (d:).
Invalid date
You specified an invalid date in response to the DATE prompt.
Enter a valid date in the appropriate format.
Invalid Date/Time
You specified an invalid date with one of the BACKUP command
switches.
Invalid device
The device specified was not AUX, CON, LPT, NUL, or PRN.
You changed the disk in a drive when you weren’t supposed to. Put
the disk back in the drive and press R (for Retry).
valid filename.
Invalid Entry
The characters you input in response to a prompt are not
Invalid parameter(s)
One of the specified parameters is invalid. Correct the command
line.
Invalid path
You specified an incorrect path name. Retype the command line.
not removed.
keyboard code.
Invalid syntax
You used the wrong syntax when typing a command. See Chapter 4
for the correct syntax of an MS-DOS command.
Invalid time
You specified an invalid time. See the description of TIME in
Chapter 4 for the correct syntax.
Invalid Volume ID
FORMAT displays this message when you ask to format a hard
disk,but enter a volume label that does not match the volume label
you want to use a keyboard code other than the default U.S.
(QWERTY) keyboard, use the KEYB command to install it.
occur if there was an error in the source file, or on the target disk.
You may have to back up this file separately to another disk.
using. Press A (for Abort), or wait awhile and press R (for Retry).
using. Press A (for Abort), or wait awhile and press R (for Retry).
New file
This message appears if EDLIN does not find a file with the name
you specified. If you are creating a new file, ignore this message. If
you do not intend to create a new file, check to see that you
correctly typed the filename of the file you wish to edit.
No Append
No paths have been appended. If you would like to append a path
for data files, use the APPEND command.
No appended directories
You did not specify a path with the APPEND command.
No code page has been selected
No code pages have been selected for the system. If you would like
to select a code page, use the CHCP command.
No COM: ports
Your computer does not have an asynchronous communications
(serial) port.
Check the command line that started EDLIN for an illegal filename
or diskette drive. If the command is no longer on the screen and if
you have not yet typed a new command, you can recover the
EDLIN start command by pressing F3.
No sub-directories exist
You have specified the /F switch, but the directory does not contain
subdirectories.
Not found
You have specified a Search or a Replace command that did not
find a further occurrence of the specified string.
(CON). This is only a warning to let you know that your keyboard
and screen console device are working from different code pages.
partition table.
Printer error
Your printer was off line, disconnected, or turned off when you gave
the command to change its setting. Restore communication with
the printer, then repeat the command. Also, MODE displays this
message if you and lines per inch
try to set the line width for a
unusable.
backup disks in the same order that they were backed up.
Syntax error
You have entered a command incorrectly. Check to make sure you
have typed the command correctly. Remember to enclose the FIND
command string in double quotation marks.
Target is full
There is no more room on the target disk for restored files. You
must delete some of the files on the disk to make room for these
files, or use another disk.
approximately 2800. The program does not log in any more files.
Unable to erase
BACKUP could not erase the files on the target disk. Check to see
that the files on the backup disk are not read-only, and that the disk
is not write-protected.
full, delete files and then make a new directory. If the directory is
full, either delete files or create the new directory from a different
parent directory.
Unrecognized printer
You are using an invalid printer. Check to see whether you entered
the command properly, or see the PRINT command in Chapter 4 to
make sure you have specified a valid printer name.
delete it. you press N in response to the prompt, you may not be
If
invalid.
VM read error
This is a disk error; it is not caused by LINK.
Warning-directory full
The root directory is too full for RECOVER processing. Delete
some files in the root directory to free enough space for RECOVER
to run.
Belgium C-3
Canada C-3
Denmark C-4
France C-4
Germany C-5
Italy C-5
Latin America C-6
Netherlands C-6
Norway C-7
Portugal C-7
Spain C-8
Sweden/Finland C-8
Switzerland C-9
United Kingdom C-9
United States C-10
To reload the United States keyboard layout after using another one,
press Ctrl Alt FI. To reselect the international keyboard layout you
were using, press Ctrl Alt F2.
Inser
I
I
I
1^-
|
Ctrl
|
|
AUO
Inser
Germany Italy
Gr
Alt
Gr
Alt
AltGr
Gr
Alt
Gr
Alt
United States
Generating Special Characters
With some of the international keyboards, you can generate special
key, the letter with the special mark appears on your screen.
For example, after you use the KEYB command to select the French
"
keyboard, if you press the key and then a, the character a appears on
your screen.
Note
These sequences are sometimes called dead key combinations.
Germany
aeEiou aeiou
France
aAeioOuUy aeiou
Spain
aAeioOuUy aeEiou aeiou aeiou
Belgium
aeuio aeiiioyAUO aeuioE aeuio nN
Denmark
eEaiou aeiou aeiou aAeioOuUy
Norway
eEaiou aeiou aeiou aAeioOuUy
Portugal
aAeEiloOuU aAoonNuU aAeEiioOuU aAeEoO
By using the tables you can determine the hexadecimal value of each
character. The first hex digits are in the top row, and the second hex
digits are in the first column.
-h Al VI
> G
H 8 hi k fe W b i h U © G <o 8
00
k « c
J ^ t= =*= + -,
L
« J H h — —
| U- =l= y=J JL J
~ir i
P5 TT-r F W =n
O— L Sst
a>
&> 'W -« <W <0 :W :i—' <3 '3 a
Et <0
<o O <** o
'D <D '•->
eo
CO O
O’ =3 <ed <<J /(d ^ O* <v
«l> I :4>
:<V /0>
m«3>5X>'' ‘^ < — 1
<Q
cQUQWfeOK-'-o^i-iSZO
X -
00 a>
Code page 865 (Nordic — Norwegian and Danish)
Appendix E
ANSI Escape Sequences
Introduction E-2
• The default value is used when you do not specify an explicit value
or a value of zero.
Cursor Functions
Table E-l lists the escape sequences that affect the cursor position on the
screen.
Name/Format Description
Cursor Position (CUP) CUP and HVP move the cursor to the position
Esc [PnjPnH specified by the parameters. The first parameter
specifies the line number, and the second
Horizontal and Vertical
parameter specifies the column number. All
Position (HVP) default values are 1 . When you do not specify the
Esc [Pn;Pnf parameters, the cursor moves to the home
position.
Cursor Down (CUD) This sequence moves the cursor down one line
Cursor Forward (CUF) This sequence moves the cursor forward one
Esc [PnC column without changing lines. The value of Pn
determines the number of columns to move. The
default value for Pn is 1 There is no effect if the
.
Cursor Backward (CUB) This sequence moves the cursor back one column
Esc [PnD without changing lines. The value of Pn
Name/Format Description
Erase Line (EL) This sequence erases from the cursor to the end
Esc [K of the line (including the cursor position).
Modes of Operation
Table E-2 lists the escape sequences that affect screen graphics.
Name/Format Description
Esc [Ps; . . ;Psm Table E-3. The graphic functions remain in effect
.
Esc [=01
Esc [?71
1 Bold on
2 Faint on
3 Italicon
4 Underscore on (monochrome displays only)
5 Blink on
6 Rapid blink on
7 Reverse video on
8 Concealed on (ISO 6429 standard)
30 Black foreground (ISO 6429 standard)
31 Red foreground (ISO 6429 standard)
32 Green foreground (ISO 6429 standard)
33 Yellow foreground (ISO 6429 standard)
34 Blue foreground (ISO 6429 standard)
35 Magenta foreground (ISO 6429 standard)
36 Cyan foreground (ISO 6429 standard)
37 White foreground (ISO 6429 standard)
40 Black background (ISO 6429 standard)
41 Red background (ISO 6429 standard)
42 Green background (ISO 6429 standard)
43 Yellow background (ISO 6429 standard)
44 Blue background (ISO 6429 standard)
45 Magenta background (ISO 6429 standard)
46 Cyan background (ISO 6429 standard)
47 White background (ISO 6429 standard)
48 Subscript
49 Superscript
Parameter Function
Keyboard Reassignment
Although not part of the ANSI 3.64-1979 or ISO 6429 standard, the
following keyboard reassignments are compatible with these standards.
• Esc ["string"’,
The final code in the control sequence (p) is one reserved for private use
by the ANSI 3.64-1979 standard.
The first ASCII code in the control sequence defines which code is
Esc [0;68;"dir";13p
The 0;68 is the extended ASCII code for the F10 key; 13 decimal is a
carriage return.
A
Accented characters, C-l 1
Active partition, 4-73
ANSI escape sequences, E-2-7
ANSI.SYS device driver, 3-7, 6-11, 6-22
Append, EDLIN, 8-25, 8-28
APPEND command, 2-10, 4-5 — 8
APPEND.EXE, 3-6
Application programs, 1, 1-9- 10, 2-2, 4-19, 6-5, 6-7, 6-13, 6-15, 6-22, 7-4
returning to, 4-54
Archive bit, 4-11, 4-164, 5-21, 5-23
ASCII
characters, 4-88-89, 4-102
files, comparing, 4-57
mode, 4-35
Assemble, DEBUG, 8-5, 8-8
Assembly language programs, 8-45, 8-48
ASSIGN command, 4-9- 10
ASSIGN.COM, 3-7
ATTRIB command, 2-6, 3-6, 4-11-13, 5-4, 5-20
ATTRIB.EXE, 3-4
B
Backslash (\), 2-6, 2-8—9, 3-11 — 12, 4-106
see also Root directory
Backing up
disks, 1-3-6, 4-17
Index i -l
Backup 5-8-11
Files, 5-4,
creating, 7-2 —4
executing, 7-2—9
jumping, 7-14
labels, 7-9, 7-14
naming, 7-2-4
Batch processing, 3-9, 7-2—19
commands, 3-14, 7-8—19
operations, 3-9
Baud rates, 4-111, 5-32-33
BIN files, 8-43
Binary
files, comparing, 4-57, 5-18
format, 8-43
mode, 4-35
Block devices, identifying, 6-5
Booting system, 1-2, 1-6, 3-16, 4-73
Boot-up drive, 4-154
BREAK command, 3-2, 3-8, 4-19, 6-2, 6-6
Buffers
allocating, 6-2, 6-7
cache, 4-94
BUFFERS command, 6-2, 6-7
c
Cache buffer, 4-94
1-2 Index
Clear monitor screen, 3-2, 3-8, 4-27
CLS command, 3-2, 3-8, 4-27
format, 3-12
piping, 3-19
processor
exiting, 4-54
loading, 4-28-30, 6-2, 6-17
secondary, 4-28
top-level, 4-28
prompt, 1-6, 3-8
Index 1-3
Commands (continued)
external, 3-2, 4-4
format, 3-10, 4-3
internal, 3-2
programming, 8-2-63
Comment lines, 7-18
Compare, DEBUG, 8-5, 8-9
1-4 Index
CPU (central processing unit), 1-7
registers, 8-3—4, 8-15
Creating partitions, hard disk, 4-65 — 73
see also Partitions
D
Data
files, 4-5-6, 4-122
displaying, 4-120
protecting, 4-11
sorting, 4-150
filtering, 3-19
length, 4-111, 5-32-33
redirecting, 3-18
DATE command, 1-2, 3-2, 3-8, 4-39-40
Date, format, 4-39
Dead key sequences, 4-101, C-l 1
starting, 8-3
string, 8-8
TESTBUG.COM, 8-18-19
value, 8-8
(A)ssemble, 8-5, 8-8
(C)ompare, 8-5, 8-9
Index 1-5
DEBUG command (continued)
(G) o, 8-5,8-11
(H) ex, 8-5, 8-11
(I) nput, 8-5, 8-12
(L) oad, 8-5, 8-12
(Q)
(M) ove, 8-5, 8-13
(N) ame, 8-3, 8-5, 8-13
changing, 1-6
DEL command, 3-2, 3-5-6, 4-41-42, 4-52, 5-45
Delete, EDLIN, 8-25, 8-30
Deleting
directories, 2-7
files, 3-5-6
partitions, 4-74
Delimiters, 3-13
DEVICE command, 5-36, 6-11, 9-5-6
Devices, 3-18
block, 6-5
code pages, 4-108
preparing, 4-115-117
drivers, 6-5, 6-21, 9-5
installing, 6-2, 6-11, 6-21
identifiers, 6-5
names, 2-3
DIR command, 3-2, 3-6, 4-43—44, 5-45
1-6 Index
Directories, 3-6, 6-32
changing, 2-7 — 8, 4-22 — 23
copying, 2-7, 5-22-24
creating and using, 2-6 - 7
deleting, 2-7
displaying, 2-11, 3-6, 4-157
joining, 4-98
pathnames, 2-7-9
removing, 2-12
root, 2-8 — 9
subdirectories, 2-6, 2-8—9
Directory, 2-6, 2-8—12, 3-11, 3-13
connecting, 3-6
current, 4-22, 4-106
parent, 2-11
pathname, 2-6
printing, 5-6
removing, 2-12
root, 2-6-7, 2-11, 4-22, 4-106, 6-3, 7-4
tree structure, 4-157
see also XTREE
Disk
buffers, 6-7
drive descriptor, 2-3, 3-11, 3-16
errors, B-2
operating system, 1
status, 4-24 — 26
write, 4-161
Disk Compare, 5-4, 5-27 - 28
Disk Copy, 5-4, 5-26
Disk Utilities, 5-4, 5-24-30
DISKCOMP command, 3-14, 4-45-48, 5-4, 5-27
DISKCOMECOM, 3-3
DISKCOPY command, 1-3-5, 1-9, 3-3, 3-14, 4-49-51, 5-4, 5-26
DISKCOPY.COM, 3-3
Diskette(s)
backing up, 1-3—4, 3-4, 4-14— 18
checking, 3-3, 4-24
comparing, 3-3, 4-45—48
compatibility, 1-8
copying, 3-3, 4-49 — 51, 5-26
Index 1-7
Diskette(s) (continued)
incompatibility, 1-8
initializing, 4-82 — 87
labelling, 1-6, 4-104
master, 1-6
operations, 3-3
recovery, 4-130
startup, 3-16
system, 3-2, 3-4, 3-7, 3-9
tracks, 1-8
working, 1-6
write-protecting, 1-3
Diskette drives, 1-8
diskette incompatibilities, 1-8
drive incompatibilities, 1-8
installing, 6-25
1-8 Index
Drive(s) (continued)
letter, 2-10
assigning, 3-7
substituting, 3-6, 4-152-153
single, 1-10
two, 1-9
DRIVER. SYS, 3-7,6-11,6-25
DU, 5-4, 5-24
Dump, DEBUG, 8-5, 8-9
E
ECHO command, 3-2, 3-9, 7-10
Editing
keys, 1-14
text, 8-23 — 42
EDLIN command, 3-14, 3-16, 8-2, 8-23-42
asterisk (*), 8-24
commands, 8-25, 8-28-42
line, 8-26
options, 8-26
prompt, 8-24
question mark (?), 8-26
special features, 8-27
starting, 8-24
(Q)
string, 8-26
Index 1-9
EGA monitor, 9-4
EGA.CPI file, 9-4
End, EDLIN, 8-25, 8-31
Enter, DEBUG, 8-5, 8-10
F
FASTOPEN command, 4-55-56
FASTOPEN.EXE, 3-5
FCBS command, 6-2, 6-4, 6-13
FC command, 4-57 — 64, 5-4, 5-17-20
FC.EXE, 3-5
FDISK command, 4-65 - 79
FDISK.COM, 3-4
File allocation table, 3-3, 4-24, 5-25
listing, 4-43-44
locating, 4-5, 4-94
locking, 4-149
maintaining, 2-5
managing, 2-2
merging, 4-35
naming, 2-2
networking, 4-149
opening, 6-2, 6-4, 6-15
printing, 3-5, 4-124-126
program, 2-10
protecting, 2-5
recovering, 4-130- 131
renaming, 3-5, 4-132
Index hll
File(s) (continued)
FORMAT.COM, 3-3
Function keys, 1-13
see also XTREE
G
Go, DEBUG, 8-5, 8-11
1-12 Index
Hard disk, 1-6
backing up files, 3-4
checking, 4-24 — 26
cylinders, 4-70
FDISK, 4-65-79
formatting, 3-4, 4-82-87, 5-28-30
initializing, 4-82 — 87
labelling, 3-4, 4-104
partitioning, 3-4, 4-65 - 79, 6-5
restoring files, 3-4
Hardware interrupts, 6-19
HDCACHE command, 4-94-96
HDCACHE.EXE, 3-4
HELP command, 4-97, 5-4, 5-39-40
HELECOM, 3-7, 5-39
HELETXT, 4-97, 5-39
Hex, DEBUG, 8-5, 8-11
I
IF command, 3-2, 3-9, 7-15
Input
DEBUG, 8-5, 8-12
redirect, 3-17
J
JOIN command, 3-14, 4-98-99
JOIN.EXE, 3-6
K
KEYB command, 1-16- 17, 4-100- 103, 9-4, 9-7
KEYB.COM, 3-7
Index M3
Keyboard, 1-13
code, 1-16, 4-100, 4-141
control, 6-11, 6-22
control key functions, 1-13
file, 4-102, 6-12
function keys, 1-13
generating special characters, 1-14
layout, 3-4, 4-100, 4-140, C-2-10
country, 3-7
reassignment, B-6
replacing, 4-100
setting international, 1-16
special characters, C-l 1-12
KEYBOARD.SYS, 4-102, 6-12
L
LABEL command, 3-6, 3-14, 4-104—105
LABEL.COM, 3-4
Labels
batch files, 7-9, 7-14
volume, 4-162
LASTDRIVE command, 4-152, 6-2, 6-16, 6-26
LIM-EMS, 6-4, 6-11, 6-28
LINK command, 8-2, 8-45-63
aborting, 8-50
aligning segments, 8-57
assembly language, 8-45, 8-48
combining segments, 8-58
8-45-52
files,
fixups, 8-59-60
groups, 8-47, 8-59
libraries, 8-48-52
list file, 8-48-52
object module, 8-45-46, 8-48-52
parameters, 8-51 — 52
processing, 8-57—60
run file, 8-48-52
segments, 8-47, 8-57 — 60
starting, 8-49
1-14 Index
LINK command (continued)
switches, 8-52 — 57
/CPARM AXALLOC ,
8-53
/DOSSEG, 8-53
/DSALLOCATE, 8-52-53
/EXEPACK, 8-54
/HELP, 8-54
/HIGH, 8-54
/LINENUMBERS, 8-54
/MAE 8-54
/NODEFAULT, 8-55
/NOGROUP 8-55
/NOIGNORE, 8-55
/OVERLAYINTERRUPT, 8-55
/PAUSE, 8-56
/SEGMENTS, 8-56
/STACK, 8-56
VM.TME 8-46, 8-48-49
LINK.EXE, 3-9
List, EDLIN, 8-25, 8-33
Load, DEBUG, 8-5, 8-12
M
Master diskettes, 1-6
MD command, 4-106
Memory, 1-5
allocating, 6-3
expanded, 6-3-4, 6-28, 6-31-32
expansion card, 6-4
extended 4-94, 6-3—4, 6-31 — 32
nonvolatile, 6-3
RAM, 6-3-4,6-11,6-31-32
Index 1-15
Memory (continued)
size, 6-7
standard, 4-94
volatile, 6-3
N
Name, DEBUG, 8-3, 8-5, 8-13
Network, 6-16
support, 3-14
system, 3-5, 6-13
NLSFUNC command, 4-121, 9-4
NLSFUNC, 9-7
NLSFUNC.EXE, 3-8
NUL, 2-3, 4-37
Numeric keypad, 1-15-16
o
Object code modules, 3-9, 8-45-46, 8-48-52
Object modules, LINK, 8-45-46, 8-48-52
Output, 3-17
Output, DEBUG, 8-5, 8-14
Output, redirect, 3-17
p
Page, EDLIN, 8-25, 8-35
Parallel printers, 4-108, 6-29
Parameters, 3-10- 12
alignment, MODE, 4-114
condition, 7-15
DEBUG, 8-5
display, 6-8
displaymode, MODE, 4-114
dummy, 3-16
LINK, 8-51-52
replaceable, 3-16, 7-5, 7-7, 7-19
SGR, E-5
SM/RM, E-6
Parent directory, 2-11
Parity, 4-111, 5-32-33
Partitions, hard disk, 3-4, 4-65 — 79
active, 4-73
creating, 4-67
deleting, 4-74-77
displaying, 4-78
extended, 1, 4-70-72, 4-76
logical drives, 1, 4-72, 4-77
primary, 1, 4-65 — 79
deleting, 4-75
Path, 2-9, 11-12, 3-14, 4-5-6
3-,
Index 1-17
Printer(s)
buffer, 4-124
Q
Quit, DEBUG, 8-5, 8-15
Quit, EDLIN, 8-25, 8-36
Quotation marks, 4-81, 8-8
R
RAM, 6-3-4, 6-11, 6-32
disk, see Virtual disk
Random access memory, see RAM
Read-only, 2-6
attribute, set or reset, 3-4, 4-1 1 - 13, 5-21
memory (ROM), 6-3
Real-time clock, 1-2
Reboot, operating system, 1-7
1-18 Index
Redirect LPTn, 5-34
Redirecting I/O, 3-17, 5-34
Redirection symbols, 7-3
Refreshing, code pages, 4-117
Register, DEBUG, 8-5, 8-15
Remarks, 7-18
RENAME command, 3-2, 3-5-6, 4-132, 5-45
Repetitive operations, 7-12
REPLACE command, 4-133- 135, 5-4, 5-15
s
Screen
aligning, 4-113
clear, 3-8
Index 1-19
SELECT.COM, 3-4
Serial port, 3-18
changing configuration, 3-7
preparing, 4-111-112
Serial Port, 5-32-33
SET command, 3-2, 3-8, 4-28, 4-147
Set mode, parameters, 4-147
SETATTR, 5-4
SETBCKUP 5-4
SETFC, 5-4
SETMODE, 5-4
SETRPLCE, 5-4
SETPRINT command, 3-6, 5-42 - 44
SETPRINT.EXE, 3-6
SETRSTOR, 5-4
SETXCOPY, 5-4
SHARE command, 4-149
SHARE.EXE, 3-5
SHELL, CONFIG.SYS, 6-2, 6-17
SHIFT command, 3-2, 3-9, 7-7, 7-20
Software program, 1,6-21 see also Application programs
SORT command, 3-19, 4-150-151, 9-6
SORT.EXE, 3-5
Special characters, generating, 1-14-15, C-ll - 12
Stack frames, 6-2, 6-19
STACKS command, 6-2, 6-19
Startup diskette, 3-16
Stop bits, 4-111, 5-32-33
Subdirectories, 2-6—12
copying, 4-163-165
creating, 4-106- 107
deleting, 4-139
replacing, 4-133- 135
SUBST command, 2-10, 4-152, 6-16
SUBST.EXE, 3-6
Substitute, drive letter, 2-10, 3-6, 4-152
Switches, 3-12
Symbols, 4
1-20 Index
SYS
command, T9, 3-14, 4-154
SYS.COM, 3-4
System, 3-2
booting, 1-2, 3-16
configuration and operation, 3-7
changing, 3-7
diskettes, 3-2, 3-4, 3-7, 3-9
backing up, 1-3
startup, 6-11
customizing, 7-4
time, 4-155
T
Text
editor, 3-16 see also EDL1N
files, 4-159
searching for, 4-80-81
TIME command, 1-2, 3-2, 3-8, 4-155 — 156
u
Unassemble, DEBUG, 8-5, 8-17
V
VDISK.SYS device driver, 3-8, 6-4, 6-11, 6-28, 6-31-33
VER command, 3-2, 3-8, 4-160
VERIFY command, 3-2, 3-8, 4-161
1-21
Index
VOL command, 3-2, 3-6, 3-8, 4-162, 5-45
Volume
identification, 3-8
labels, 3-3-4, 4-83-85, 4-104, 4-162, 5-29
w
Wildcard characters, 2-4, 3-12
Working diskettes, 1-6
Write, DEBUG, 8-5, 8-17
Write, EDLIN, 8-25, 8-41
Write-protect diskette, 1-3-4, 2-5
X
XCOPY command, 4-163-165, 5-20, 5-22
XCOPY.EXE, 3-5
XTREE command, 2-5, 3-6, 5-46-73, 7-4
command features, 5-46
cursor controls, 5-51
DIR commands, 5-52—60
FILE commands, 5-60—70
function keys, 5-70-73
menu, 5-47
XTREE.EXE, 3-6, 3-8
XTREEINS command, 5-74—80
XTREEINS.DAT, 3-8
XTREEINS.EXE, 3-8
1-22 Index