DOSKEY

DOSKEY is a command line editor that give you more control over the command line. With DOSKEY you can edit the command line, recall old commands and create macros. DOSKEY is a TSR (Terminate and Stay Resident). a TSR is a command like any other command except that once it is executed it will stay in memory until it is removed. The reason why is so that you can have access to its abilities with a few keystrokes.

To install DOSKEY just enter its name at the prompt and press enter. Once installed DOSKEY will maintain a list of all of the commands that you enter in, it will then allow you to manipulate that lists by using the following keys.

UP ARROW

Redisplay a Previous Command in the history list

DOWN ARROW

Redisplays the next Command in the history list

HOME

Moves to the start of the command line

END

Moves to the end of the command line

LEFT ARROW

Moves back one character

RIGHT ARROW

Moves forward one character

CTRL + LEFT ARROW

Moves back one word

CTRL + RIGHT ARROW

Moves forward one word

BACKSPACE

Backs up and deletes the preceding character

DEL

Deletes the character the cursor is blinking under

CTRL + END

Deletes from the cursor to the end of the line

INSERT

Switches between insert and over type editing modes

F7

Display the list of commands, after displaying the list you can use the arrow keys to select a command to execute again

F9

Used to request a specific by pressing F9 and then enter the line number of the command