Command History Buffer

  • Section(s): Command Prompt
  • Published on Apr 20, 2004.
  • Last Modified on Apr 20, 2004.
  • Last Modified by Wayne Maples.
  • Rated 5 out of 5 based on 1 votes.
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 Wayne Maples

Share this article


Article not looking right or info is missing? Let us know so that we can fix it: .


Receive all the latest articles by email!

Receive Real-Time & Monthly WindowsNetworking.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowsNetworking.com member!

Discuss your network issues with thousands of other network administrators. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred network administration tool?