|Purpose:||Display, add to, clear, or read the directory history list|
|Format:||DIRHISTORY [/= /A directory /F /G /L /N /P /R filename /Tn]|
The name of a directory to be added to the directory history.
The name of a file containing entries to be added to the directory history.
See also: HISTORY.
Supports command dialog.
Every time you change to a new directory or drive, TCC saves the previous directory in an internal directory history list. The directory history window allows you to use the list to return to a previous directory. See also: directory navigation.
The DIRHISTORY command lets you view and manipulate the directory history list directly. If no parameters are entered, DIRHISTORY will display the current directory history list:
With the options explained below, you can clear the list, add new directories to the list without changing to them, save the list in a file, or read a new list from a file.
The number of directories saved in the directory history list depends on the length of each directory name. The list size can be specified at startup with the Directory History Buffer Size configuration option. The default size is 4,096 characters.
Your directory history list can be stored either locally (a separate history list for each copy of TCC) or globally (all copies of TCC share the same list). For details see the discussion of local and global history lists. If you use global lists, SHRALIAS can save the list when no copy of TCC is active, as long as you do not restart Windows.
You can save the directory history list by redirecting the output of DIRHISTORY to a file. This example saves the history to a file called DIRHIST and reads it back again.
dirhistory > dirhist
dirhistory /r dirhist
Because the directory history stores each name only once, you don't have to delete its contents before reading back the file unless you want to delete the directories that were visited by the intervening commands.
TCC can also load and save the history list automatically if you use the Directory History File configuration option.
|/=||Display the DIRHISTORY command dialog to help you set the filename and command line options. The /= option can be anywhere on the line; additional options will set the appropriate fields in the command dialog.|
|/P||Wait for a key after displaying each page of the list. Your options at the prompt are explained in detail under Page and File Prompts.|
|/R||Read the directory history from the specified file and append it to the list currently held in memory.|