For example, when you??™re in the SubDir directory, the absolute path is \MyDir\SubDir. The
relative path describes the hierarchy in reference to the current directory. Consequently, the relative
path for SubDir is SubDir. Notice that you don??™t begin a relative path with a backslash.
When working with directories using commands, you often need to specify a destination using either an
absolute or a relative path. For example, if you want to create a new subdirectory in the SubDir directory,
you could type MD NewDir. This form of the command uses a relative path. The same command
using an absolute path would appear as MD \MyDir\SubDir\NewDir. You might think the absolute
path form wastes time, but it??™s always more accurate than using a relative path and eliminates the possibility
of creating a directory where you didn??™t expect it.
The command window also provides support for two special relative paths. The first is the current directory,
which is specified as a single period (.). The second is the parent directory (the one directly above
the current directory in the directory hierarchy), which is specified as a double period (..). Many
commands and utilities, such as the CD, benefit from this current directory and parent directory shortcut
terminology.
Pages:
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641