How To Rename A Directory - Commodore PC Ms-Dos 3.2 User's Manual

Table of Contents

Advertisement

12 MS-DOS User's Reference
To remove all the files in a directory (except for the "." and ".."
entries), type del followed by the path of the directory. For exam
ple, to delete all files in the \user\emily directory, type the fol-
,
j
lowing command:
^—'
del
\u5er\emily
U
ms-dos prompts you with the following message:
Are
you
5ure
(Y/N)?
i)
If you really want to delete all the files in the directory, type Y
(for Yes). If not, type TV (for No) to stop the command.
i
j
Now you can use the rmdir command to delete the \user\emily
directory by typing the following command:
rmdir
\user\emily
Shortcut
To save time you can also use the letters rd for the
\)
rmdir command.
How to Rename a Directory
w
Renaming a directory
There is no command to rename a directory in ms-dos. You can,
however, rename a directory that has no subdirectories. Suppose,
M
for example, you want to rename the \user\pete directory and
call it \user\emily. To do this you would follow these steps
(remember to press the return key after each step):
,
\
H To create the new directory, type:
mkdir
\user\emily
i)
[U Then to copy the files from the old directory to the new direc
tory, type:
[^J
copy
\user\pete\*.*
\user\emily
[H Now to delete the contents of the old directory, type:
^-^
del
\user\pete\*.*
U
(Type Fin response to the prompt "Are you sure?")
H Finally, to remove the old directory, type:
rmdir
\user\pete
U

Advertisement

Table of Contents
loading

Table of Contents