Purpose:Display, add to, clear, or read the directory history list

 

Format:DIRHISTORY [/A directory /F /G /L /N /P /R filename /Tn]

 

directory

The name of a directory to be added to the directory history.

filename

The name of a file containing entries to be added to the directory history.

 

/A(dd)/N(o duplicates)
/F(ree)/P(ause)
/G(lobal)/R(ead)
/L(ocal)/T (display last n lines)

 

See also: HISTORY.

 

File Selection

 

Supports command dialog.

 

Usage

 

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:

 

dirhistory

 

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.

 

Options

 

/=Display the DIRHISTORY command dialog to help you set the filename and command line options. You cannot specify any other arguments on the command line.

 

/A Add a directory to the directory history list.

 

/FErase all entries in the directory history list.

 

/GSwitch from a local to a global directory history list.

 

/LSwitch from a global to a local directory history list.

 

/NRemoves duplicate entries (oldest first) from the directory history list.

 

/PWait for a key after displaying each page of the list. Your options at the prompt are explained in detail under Page and File Prompts.

 

/RRead the directory history from the specified file and append it to the list currently held in memory.

 

/TnDisplay the last n lines of the directory history. If n is negative, skip the first -n lines of the directory history.