Background And Example
- You browse in DOS using the CD (Change Directory) command. A directory is the same thing as a folder.
- Example: The command cd documents is equivalent to double-clicking a folder icon called documents
- When you do this, the DOS prompt changes to display your new location in the file system.
- Once you've 'opened' a directory using CD, you can view its contents using the DIR command (DIRectory)
- You can browse to your destination one level at a time using a series of CD commands
- Alternatively, you can chain a sequence (path) of directories into one CD command using the '\' character as a separator.
- If you need to go in the reverse direction, to the "parent" directory, use CD with .. as your destination.
Example: current directory is Z:\ (your Z drive
home folder) and you want to browse to your exercise1 folder. The path
to get there from your home folder is through My Documents then COMP 2100
Z:\> cd My Documents\COMP 2100\exercise1
|