Commodore PC Ms-Dos 3.2 User's Manual page 86

Table of Contents

Advertisement

14 MS-DOS User's Reference
Using pathnames with
internal commands
Some internal commands can use paths and pathnames. Specifi
cally, four commands — copy, dir, del, and type — have greater
flexibility when you specify a pathname after the command.
The formats of these commands are as follows:
U
copy pathname pathname
If the second pathname is a directory (a path), ms-dos copies all
the files you specify in the first pathname into that directory, as
in the following example:
copy
\user\pete\*.*
sales
del pathname
If the pathname is a directory (a path), all the files in that direc
tory are deleted. If you try to delete a path, the prompt "Are you
sure (Y/N)?" is displayed. Type F (for Yes) to complete the com
mand, or TV (for No) to stop the command. Example:
del
\user\pete
u
dir pathname
The following command displays the directory for a specific
pathname:
dir
\user\pete
What are external
commands?
type pathname
You must specify a pathname (or filename) for this command.
ms-dos then displays this file on your monitor in response to the
type command. Example:
type
\user\emily\report.noy
Any filename with an extension of.com, .exe, or .bat is con
sidered an external command. For example, files such as
format.exe and diskcopy.exe are external commands. And, because
these commands are also files, you can create new commands and
add them to ms-dos. Programs that you create with most languages
(including assembly language) will be .exe (executable) files.
Note, however, that when you use an external command, you do
not need to type its filename extension.
U
u
u
u

Advertisement

Table of Contents
loading

Table of Contents