110
MS-DOS User's Reference
Creating a new
directory
Changing directories
Displaying your
working directory
How to Create a Directory
To
create
a subdirectory in
your
working directory, use
the
mkdir
(make
directory)
command. For example,
to
create
a
new
directory
named
user
under
your
working directory, simply
type
the
following command:
mkdir
user
After MS-DOS runs this command, a
new
directory
will exist
under
your
working directory. You
can
also make
directories
anywhere
in
the
directory
structure
by specifying
mkOO
followed by a path.
MS-DOS automatically creates the "." and " .. "
entries
in the
new
directory.
To
put
files in
the
new
directory, you can use
the
MS·DOS line edi-
tor,
edlin.
Chapter 6, "The Line Editor (Edlin)," describes
how
to
use
edlin
to
create
and
save files. You
can
also
create
and save
files
if
you have a
word
processing program
such
as Microsoft®
Word.
How to Change Your Working Directory
With MS-DOS it is easy
to
change from
your
working
directory
to
a
different directory: you simply type
the
chOO
(change
directory)
command
followed by a path. For example,
if
you
type
chdir
\ user and
then
press
the
RETURN key, MS-DOS
changes
the
working
directory
to
\user. You can also specify any
path
after
the
com-
mand
so
that you can "travel"
around
the
directory
structure.
The
following command, for example, puts you in
the
parent
directory
of
your
working directory:
chdir
..
How to Display Your Working Directory
All
commands
are
executed
while
you
are
in
your
working direc-
tory. You
can
find
out
the
name
of
the
directory
you
are in by
typing
the
MS-DOS
chOO
command
with
no
path. For example,
if
your
working
directory
is
\user\pete,
when
you
type
chdir
and
press
the
RETURN key, you
would
see
the
follOWing:
A:\USER\PETE
This is
your
working
drive,
A,
plus
the
working directory,
\ user \pete.
[
[
[
[
[
[
[
[
[
[