The
first (bottom) pancake on the stack is always the last pancake off. When the pancakes are all gone,
the stack is empty.
If you move around your hard drive a lot, using the PushD and PopD commands can save you
considerable typing time. However, most people use these commands to simplify batch files. No
matter which way you use them, the directory stack is a handy way for tracking your movement.
These commands use the following syntax:
PUSHD [path | ..]
POPD
The following list describes each of the command line arguments.
path Specifies the absolute or relative path to change to from the current location. See the
???Understanding Absolute and Relative Paths??? sidebar for additional details.
The PushD and PopD commands can also use command extensions to change to a network drive.
When you use PushD in this manner, Windows automatically maps a drive to the network path
for you. The PopD command treats the networked drive as it would any other mapped drive for
your system. You can learn more about command extensions in the ???Understanding Command
Extensions??? section of Chapter 5. Notice that you can also specify the next directory as the parent
directory by using the .
Pages:
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648