DOS Commands:: Directory
DOS Commands:: Directory
Directory-
Microsoft DOS dir command
About dir
The dir command allows you to see the available files in a directory. You will see the
word “ Volume ” in this information. Volume is simply another word for a disk that
the computer has access to. Your hard disk is a volume, your floppy disk is a volume
and a server disk (hard disk served over a network) is a volume.
Availability
The dir command is an internal command and is available in the below Microsoft
operating systems.
Syntax
C:\>dir
Examples
dir
Lists all files and directories in the directory that you are currently in.
dir : more
Lists all files and directories including hidden files and directories.
dir /p
If the directory has a lot of files and you cannot read all the files as they scroll
by, you can use this command and it will display all files one page at a time.
dir /w
If you don't need the info on the date / time and other information on the files,
you can use this command to list just the files and directories going horizontally,
taking as little as space needed.
Change Directory-
Microsoft DOS cd command
About cd
Availability
Examples
cd\
cd windows
If you are running a MS-DOS version 4.x or lower or you are unable to find edit.com on
your hard disk drive, you can also use the below command to create a file.
Once you have entered the above command this will bring you to a screen where you
can write the info to be put in the file.
Once you have typed all the lines you wish to have in the file, press and hold
Alt + F + S. This will save the file . To exit press Alt + F + X. This will come back to the
DOS commands screen.
Availability
The edit command is an external command that is available in the below Microsoft
operating systems.
MS-DOS 5.x and above
Windows 95
Windows 98
Windows ME
Windows NT
Windows 2000
Windows XP
Syntax
Make Directory-
Microsoft DOS md command
About md
Availability
The md and commands are internal commands that are available in the below
Microsoft operating systems.
Syntax
C:\>md test