[Toc][Index]

Local and Global Directory History


The directory history can be stored in either a "local" or "global" list. 
With a local directory history list, any changes made to the list will 
only affect the current copy of the command processor.  They will not be 
visible in other shells, or other sessions. 
With a global list, all copies of the command processor will share the 
same directory history, and any changes made to the list in one copy will 
affect all other copies. 
You can control the type of directory history list on the Startup page of 
the OPTION dialogs, with the LocalDirHistory directive in CMD.INI, with 
the /L and /LD startup options, and with the /L and /LD options of the 
START command. 
There is no fixed rule for deciding whether to use a local or global 
directory history list.  Depending on your work style, you may find it 
most convenient to use one type, or a mixture of types in different 
sessions or shells.  We recommend that you start with the default setting, 
then modify it if you find a situation where the default is not 
convenient. 
If you select a global directory list, you can share the list among all 
copies of the command processor running in any session.  When you close 
all CMD.EXE sessions, the memory for the global directory history list is 
released, and a new, empty list is created the next time you start 
CMD.EXE. 
If you want the list to be retained in memory even when no command 
processor session is running, you need to execute the SHRALIAS command, 
which loads a program to perform this service for the global command 
history, directory history, and alias lists. 
Whenever you start a secondary shell which uses a local directory history 
list, it inherits a copy of the directory history from the previous shell. 
However, any changes to the list made in the secondary shell will affect 
only that shell.  If you want changes made in a secondary shell to affect 
the previous shell, use a global directory history list in both shells. 

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