Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DOS question?

Status
Not open for further replies.

ampal

Technical User
Jan 16, 2003
41
US
My age is showing when I can remember DOS but I can't remember the key strokes, to repeat the last line typed. Can someone help me?

Mike
 
UP,DOWN arrows recall commands
Esc clears current command
F7 displays command history
Alt+F7 clears command history
[chars]F8 searches for command beginning with [chars]
F9 selects a command by number
Alt+F10 clears macro definitions

The following are special codes you can use in DOSKey macro definitions:

$T Command separator: allows multiple commands in a macro
$1-$9 Batch parameters: equivalent to %1-%9 in batch programs
$* Symbol replaced by everything following macro name on the command line

EXAMPLES

doskey - This would install doskey to allow you to press the up or down command to see history, or right or left to retype previous command. Edits command lines, recalls command lines, and creates macros

More...

DOSKEY [/switch ...] [macroname=[text]]

/BUFSIZE:size Sets size of macro and command buffer (default:512)
/ECHO:eek:n|off enables/disables echo of macro expansions (default:eek:n)
/FILE:file Specifies file containing a list of macros
/HISTORY Displays all commands stored in memory
/INSERT Inserts new characters into line when typing
/KEYSIZE:size Sets size of keyboard type-ahead buffer (default:15)
/LINE:size Sets maximum size of line edit buffer (default:128)
/MACROS Displays all DOSKey macros
/OVERSTRIKE Overwrites new characters onto line when typing (default)
/REINSTALL Installs a new copy of DOSKey
macroname - Specifies a name for a macro you create
text - Specifies commands you want to assign to the macro



 
Just repeating the last line typed would be <F3>

HTH
TonHu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top