Command History Buffer

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.

About The Author

Leave a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Scroll to Top