キーボード履歴ユーティリティ
doskey
- C:\Windows\system32\doskey.exe /?
Output:
コマンド ラインの編集、Windows コマンドの再呼び出し、マクロの作成を行います。
DOSKEY [/REINSTALL] [/LISTSIZE=サイズ] [/MACROS[:ALL | :実行ファイル名]]
[/HISTORY] [/INSERT | /OVERSTRIKE] [/EXENAME=実行ファイル名]
[/MACROFILE=ファイル名][マクロ名=[テキスト]]
/REINSTALL Doskey の新しいコピーを組み込みます。
/LISTSIZE=サイズ コマンド履歴バッファーのサイズを設定します。
/MACROS すべての Doskey マクロを表示します。
/MACROS:ALL Doskey マクロを含むすべての実行可能ファイルの
すべての Doskey マクロを表示します。
/MACROS:実行ファイル名
指定した実行可能ファイルのすべての Doskey マクロを
表示します。
/HISTORY メモリ内のすべてのコマンドを表示します。
/INSERT 入力したテキストが古いテキストに挿入されるように
指定します。
/OVERSTRIKE 入力したテキストが古いテキストを上書きするように
指定します。
/EXENAME=実行ファイル名 実行可能ファイルを指定します。
/MACROFILE=ファイル名 作成するマクロ ファイル名を指定します。
マクロ名 作成するマクロ名を指定します。
テキスト 登録するコマンドを指定します。
上下方向キーはコマンドを再度呼び出します。Esc はコマンド ラインをクリア
します。F7 はコマンド履歴を表示します。Alt+F7 はコマンド履歴をクリアします。
F8 はコマンド履歴を検索します。F9 は数字によるコマンドを選択します。
Alt+F10 はマクロ定義をクリアします。
以下は、DOSKEY のマクロ定義で使用する特殊コードです:
$T コマンド セパレーターです。マクロ中で複数のコマンドを定義できます。
$1-$9 バッチ パラメーターです。バッチ ファイル中の %1-%9 と同じ意味です。
$* コマンド ライン上のマクロ名に続くテキストで置き換えられるシンボルです。
Edits command lines, recalls Windows commands, and creates macros.
DOSKEY [/REINSTALL] [/LISTSIZE=size] [/MACROS[:ALL | :exename]]
[/HISTORY] [/INSERT | /OVERSTRIKE] [/EXENAME=exename] [/MACROFILE=filename]
[macroname=[text]]
/REINSTALL Installs a new copy of Doskey.
/LISTSIZE=size Sets size of command history buffer.
/MACROS Displays all Doskey macros.
/MACROS:ALL Displays all Doskey macros for all executables which have
Doskey macros.
/MACROS:exename Displays all Doskey macros for the given executable.
/HISTORY Displays all commands stored in memory.
/INSERT Specifies that new text you type is inserted in old text.
/OVERSTRIKE Specifies that new text overwrites old text.
/EXENAME=exename Specifies the executable.
/MACROFILE=filename Specifies a file of macros to install.
macroname Specifies a name for a macro you create.
text Specifies commands you want to record.
UP and DOWN ARROWS recall commands; ESC clears command line; F7 displays
command history; ALT+F7 clears command history; F8 searches command
history; F9 selects a command by number; ALT+F10 clears macro definitions.
The following are some special codes 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 command line.
Return Code: 0
C:\Windows\system32\doskey.exe
c:\>ver
Microsoft Windows [Version 10.0.19045.2075]
| File | Info |
|---|---|
| File Size | 20480bytes |
| Creation Time | 2022/07/08 08:50:26 |
| LastWrite Time | 2022/07/08 08:50:26 |
| ProductVersion | 10.0.19041.1889 |
| FileVersion | 10.0.19041.1889 (WinBuild.160101.0800) |
| Hash | Value |
|---|---|
| MD5 | f6d134052bcb12103b729e4d2ea15b91 |
| SHA1 | d3154a6a18e7e55ebab5a12648b4ca69727185c6 |
| SHA224 | 3fce359f8bc288e4be727aa6025e41db71b3c175430ee46cc4d2ab32 |
| SHA256 | a1dbcadc2964dc2855e2bf09ae0e3c254b6a2c0a2122679f4576dce8e124bd2e |
| SHA384 | 1aee4c1b3e2bce9f41f47e4d4677f29fdfc4bc01018b306fbe4c52a95ecc0bbae4df3d304ab3d3594cc78e5043d5a360 |
| SHA512 | 0fddc6ce70771e84c96c89268f39cc2c15b13eb5998caeed9378ae071c1a193597a786587490e5cd75fb24b1c513ce181d31c569fd8803372a3f944f28100304 |