Command History Buffer

by Wayne Maples [Published on 20 April 2004 / Last Updated on 20 April 2004]

The command shell has a default of 50 commands which are accessible at the commandline by pressing up or down arrows. To change the default number of commands, cut and paste the following code into histbuf.reg file and run it.

REGEDIT4
BLANK LINE GOES HERE
[HKEY_CURRENT_USER\Console] "HistoryBufferSize"="80"
BLANK LINE GOES HERE

My example sets the buffer to hold 80 commands. The other useful option one can set is whether the buffer records duplicates. To disable duplicate commands in the history buffer: Cut and paste the following code into hbufnodups.reg.

REGEDIT4
BLANK LINE GOES HERE
[HKEY_CURRENT_USER\Console] "HistoryNoDup"="1"
BLANK LINE GOES HERE

See .REG files for background information on .REG files.

See Also

Featured Links