Editing Commands with Doskey and Editing Keys

Windows 95 provides Doskey to give you quick access to your most recent commands and enable you to assign frequently used commands to a single keystroke. Doskey is also available for character-based programs that accept buffered input. Doskey allows you to assign multiple commands to a single key or a typed alias. In addition to Doskey, several editing keys allow you to use and edit the last command you typed, as described in the following table.

Keys for Editing at the Command Prompt

Key

Description

Doskey:

up arrow or
down arrow

Cycles through commands previously entered.

F7

Displays all of the previous commands in a list. Press F9 and then choose a number from the list, and press enter (or press escape to cancel).

Other editing keys:

F1

Displays the last command one character at a time.

F3

Displays the entire command.

backspace or
left arrow

Moves the cursor in a command.

Ins

Toggles between insert and overtype mode.