Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:docs:cmd:navig [2014/05/24 04:44] – [Finding Directories] valerius | en:docs:cmd:navig [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Directory Navigation ===== | ||
- | The operating system and command processor remember both a current or | ||
- | default drive for your system as a whole, and a current or default | ||
- | directory for every drive in your system. | ||
- | current drive is sometimes called the current working directory. | ||
- | With traditional command processors, you change the current drive by | ||
- | typing the new drive letter plus a colon at the prompt, and you change the | ||
- | current working directory with the **CD** command. | ||
- | standard features, and offer a number of enhancements to make directory | ||
- | navigation much simpler and faster. | ||
- | |||
- | The *CMD.EXE* directory navigation features are in three groups: | ||
- | which help the command processor find the directory you want, methods for | ||
- | initiating a directory change with a minimal amount of typing, and methods | ||
- | for returning easily to directories you've recently used. Each group is | ||
- | summarized below. | ||
- | |||
- | ==== Finding Directories ==== | ||
- | |||
- | Traditional command processors require you to explicitly type the name of the directory you want to change to. **CMD.EXE** support this method, and also offer two significant enhancements: | ||
- | |||
- | * [[Extended Directory Searches]] allow the command processor to search a " | ||
- | * The **[[CDPATH]]** allows you to enter a specific list of directories to be searched, rather than searching a database. Use **[[CDPATH]]** instead of Extended Directory Searches if you find the extended searches too broad, or your hard drive has too many directories for an efficient search. | ||
- | |||
- | ==== Initiating a Directory Change ==== | ||
- | |||
- | **CMD.EXE** supports the traditional methods of changing directories, | ||
- | | ||
- | * [[Automatic directory changes]] allow you to type a directory name at the prompt and switch to it automatically, | ||
- | * The **[[CD]]** command can change directories on a single drive, and can return to the most recently used directory. | ||
- | * The **[[CDD]]** command changes drive and directory at the same time, and can return to the most recently used drive and directory. | ||
- | * The **[[PUSHD]]** command changes changes the drive and directory like **[[CDD]]**, | ||
- | |||
- | You can view the stack with **[[DIRS]]** and return to the directory on the top of the stack with **[[POPD]]**. | ||
- | |||
- | **[[CDD]]**, | ||
- | |||
- | ==== Returning to a Previous Directory ==== | ||
- | |||
- | Traditional command processors do not remember previously-used directories, | ||
- | |||
- | * The **[[CD]]** - and **[[CDD]]** - commands can be used to return to the previous | ||
- | * The [[directory history window]] allows you to select one of several recently-used directories from a popup list and return to it immediately. | ||
- | * The **[[POPD]]** command will return to the last directory saved by **[[PUSHD]]**. The directory stack holds 511 characters, enough for 20 to 40 typical drive and directory entries. |