December 17, 2011

Displaying Windows Cached Commands

One-way of displaying the Windows commands in the buffer or history at the command line is to hit the up or down arrow key. The buffer size is limited to 50-cached commands by default. This can be changed by opening the command prompt window, right clicking on the title bar, and selecting properties. In the command history section, increase or decease the buffer size to the desired number of commands cached.

Also, similar to the ‘history’ command in Linux, the ‘donkey /history’ can also be used to display the commands in cache in the current session.

C:\> donkey /history

C:\> doskey /? {displays doskey switches and functions}


Pressing ‘F7’ function key will display a windows showing the previous commands. Hit enter to use any of the commands.