DOSKey

DOSKey

DOSKey is a utility for MS-DOS and Microsoft Windows that adds command history, macro functionality, and improved editing features to the command line interpreters COMMAND.COM and cmd.exe. It was included as a TSR program with MS-DOS and PC-DOS versions 5 and later, and with Microsoft's Windows 95/98/Me.

In current Windows NT-based operating systems DOSKey's functionality is built into cmd.exe, although the DOSKey command is still used to change its operation.

Contents

Usage

DOSKey allows the use of several command switches:

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

/REINSTALL Installs a new copy of DOSKey.
/LISTSIZE=[size] Sets size of command history buffer to size.
/MACROS Displays 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.
/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.

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

Up and Down Recall commands
Esc Clears command line
Ctrl-Home Clears command line from the cursor to the beginning of the line.
Ctrl-End Clears command line from the cursor to the end of the 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

DOSKey implements support for command macros, a simple text-substitution facility which is used somewhat like command line aliases in other environments.

$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 the macro name on command line.

Alternatives

The absence of a command history in COMMAND.COM was a serious inconvenience from the earliest versions of MS-DOS. Numerous third-party programs have been written to address the issue; many were available long before Microsoft supplied DOSKey. Some of these also provide additional editing capabilities lacking in DOSKey, such as filename completion. Some of the better-known DOSKey alternatives are Chris Dunford's ced, Sverre Huseby's dosed, Ashok Nadkarni's cmdedit, Steven Calwas's Anarkey, Eric Tauck's Toddy, and Paul Houle's enhanced DOSKey.

See also

External links


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • doskey — doskey,   ein kleines Hilfsprogramm für eine DOS Umgebung, mit dem Befehlseingaben verarbeitet, Befehlslisten gespeichert (»History«), Befehle erneut aufgerufen und Makros erstellt werden können. Doskey ist auch heute noch Bestandteil der Windows …   Universal-Lexikon

  • Doskey utility — utility program which improves the command line interface of DOS …   English contemporary dictionary

  • Conventional memory — Memory areas of the IBM PC family. In DOS memory management, conventional memory, also called base memory, is the first 640 kilobytes (640 × 1024 bytes) of the memory on IBM PC or compatible systems. It is the read write memory usable by the… …   Wikipedia

  • Command Prompt — For other uses, see Command prompt (disambiguation). CMD redirects here. For other uses, see CMD (disambiguation). Command Prompt A component of Microsoft Windows …   Wikipedia

  • Comparison of command shells — For more details on this topic, see Shell (computing). A command shell is a command line interface computer program to an operating system. Contents 1 General characteristics 2 Interactive features 3 Programming features …   Wikipedia

  • DOS — Pour les articles homonymes, voir Dos (homonymie). On appelle généralement DOS (disk operating system) le système d exploitation PC DOS développé par Microsoft pour l IBM PC, ainsi que la variante MS DOS vendue par Microsoft pour les compatibles… …   Wikipédia en Français

  • Сравнение командных оболочек — Подробнее по этой теме см.: Оболочка операционной системы. Командная оболочка  это компьютерная программа с интерфейсом командной строки операционной системы. Содержание 1 Общие характеристики 2 Интеракти …   Википедия

  • MS-DOS — This article is about Microsoft MS DOS. For other compatible operating systems of the DOS family, see DOS. MS DOS An example of MS DOS s command line interface, this one showing that the current directory is the root of drive C …   Wikipedia

  • Terminate and Stay Resident — (TSR) is a computer system call in DOS computer operating systems that returns control to the system as if the program has quit, but keeps the program in memory. Many software vendors use the call to create the appearance of multitasking, by… …   Wikipedia

  • List of DOS commands — A partial list of the most common commands for Microsoft s MS DOS operating system follows. It contains also a few Win32 command line tools which can t run in DOS. In versions 5 of DOS and later only, the user can get help by typing HELP at the… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”