Usage of doskey

DOSKey allows the use of several command switches:

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

/REINSTALLInstalls a new copy of DOSKey.
/LISTSIZE=[size]Sets size of command history buffer to size.
/MACROSDisplays all DOSKey macros.
  • /MACROS:ALL
Displays all DOSKey macros for all executables which have DOSKey macros.
  • /MACROS:[executable name]
Displays all DOSKey macros for the given executable.
/HISTORYDisplays all commands stored in memory.
/INSERTSpecifies that new text you type is inserted in old text.
/OVERSTRIKESpecifies that new text overwrites old text.
/EXENAME=exenameSpecifies the executable.
/MACROFILE=filenameSpecifies a file of macros to install.
[macroname]Specifies a name for a macro you create.
[text]Specifies commands you want to record.

During a DOSKey session, the following keyboard shortcuts can be used:

Up and DownRecall commands
EscClears command line
Ctrl-HomeClears command line from the cursor to the beginning of the line.
Ctrl-EndClears command line from the cursor to the end of the line.
F7Displays command history
Alt-F7Clears command history
F8Searches command history
F9Selects a command by number
Alt-F10Clears macro definitions

DOSKey implements support for command macros, a simple text-substitution facility which is used somewhat like command line aliases in other environments. DOSKey macro definitions can use the following special codes:

$TCommand separator. Allows multiple commands in a macro.
$1-$9Batch parameters. Equivalent to %1-%9 in batch programs.
$*Symbol replaced by everything following the macro name on command line.

 

 copy from: http://en.wikipedia.org/wiki/DOSKey

转载于:https://www.cnblogs.com/zzj8704/archive/2010/01/23/1654789.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值