command.com
. Under Windows NT/2000/XP there are two,
command.com
and cmd.exe
. You should use
cmd.exe
.
HKEY_CURRENT_USER \Software \Microsoft \Command Processor\CompletionChar
By default it is set to 0x0 (which disables command completion). To enable command completion, set the value to the ASCII code of the key you want to activate command completion. For example, to use Tab, set the value to 0x9.
doskey
at the command
prompt. For example, to create a command history of 100 elements:
doskey /listsize=100
Note that in old versions of MS-DOS, doskey
was a
"terminate and stay resident" program. This is no longer the case --
it is now part of the command shell.
doskey ls=dir
will create an alias ls
that will execute the dir
command.
The variable $*
can be used in an alias to pass all of the
arguments entered after the alias.
Copyright 2019