[Toc][Index]

DIRHISTORY - Display, read, or modify the directory history list

 
 Purpose:    Display, add to, clear, or read the directory history list. 
             
 Format:     DIRHISTORY [/A directory /F /P /R filename ] 
             
             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)                          /P(ause) 
             /F(ree)                         /R(ead) 
 
 See also:  HISTORY. 
 Usage 
 Every time you change to a new directory or drive, CMD.EXE records the 
 current directory in an internal directory history list.  See Directory 
 History for information on directory history window, which allows you to 
 use the list to return to a previous directory.  Also see 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: 

 
         [c:\] 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 from 256 to 32767 characters by using the DirHistory directive in 
 CMD.INI. 
 Your directory history list can be stored either locally (a separate 
 history list for each copy of the command processor) or globally (all 
 copies of the command processor share the same list).  See Directory 
 History for the discussion of local and global directory history lists. 
 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: 

 
         [c:\] dirhistory > dirhist
             .....
         [c:\] 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. 
 If you need to save your directory history at the end of each day's work, 
 you might use commands like this in your 4START.BTM file: 

 
         if exist c:\dirhist dirhistory /r c:\dirhist
 
         alias shut*down `dirhistory > c:\dirhist`
 
 
 This restores the previous history list if it exists, then defines an 
 alias which will allow you to save the history before shutting off the 
 system. 
 Options 
    /A:     (Add) Add a directory to the directory history list. 
    /F:     (Free) Erase all entries in the directory history list. 
    /P:     (Prompt) Wait for a key after displaying each page of the 
            list.  Your options at the prompt are explained in Page and 
            File Prompts. 
    /R:     (Read) Read the directory history from the specified file and 
            append it to the list currently held in memory. 
 

Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs