DOSKEY Macros Must Be Executed from the Command Prompt

This article was previously published under Q79245
This article has been archived. It is offered "as is" and will no longer be updated.
It is not possible for a program or batch file to execute a DOSKEYmacro. All DOSKEY macros must be executed from the command prompt.

One workaround is to incorporate the DOSKEY commands into a batch file.
More information
The MS-DOS DOSKEY.COM program is a utility included with the MS-DOS 5or later Upgrade. The DOSKEY utility allows MS-DOS 5.0 or later commandsto be recalled and edited. DOSKEY may also be used to develop commandline macros (DOSKEY macros).

DOSKEY macros are used to store a series of commands that may berecalled by entering the name of the macro.

The DOSKEY utility uses software interrupt number 16 (INT 16) to pollkeyboard ready and to fetch characters. Because batch files andprograms do not send their commands through this interrupt, DOSKEY hasno way to "see" or intercept a request to execute a macro.

As a possible solution for batch file programming, replace the desiredDOSKEY macros with corresponding batch file commands.

For more information about DOSKEY and DOSKEY macros, see pages 448-454of the version 5.0 "Microsoft MS-DOS User's Guide and Reference."

For more information on batch file programming, see Chapter 10 of theversion 5.0 "Microsoft MS-DOS User's Guide and Reference."
6.22 Batch Files 5.00 5.00a 6.00 6.20 3rdparty

Article ID: 79245 - Last Review: 10/26/2013 14:02:00 - Revision: 3.0

Microsoft MS-DOS 5.0 Standard Edition, Microsoft MS-DOS 6.0 Standard Edition, Microsoft MS-DOS 6.2 Standard Edition, Microsoft MS-DOS 6.21 Standard Edition, Microsoft MS-DOS 6.22 Standard Edition

  • kbnosurvey kbarchive KB79245
ERROR: at System.Diagnostics.Process.Kill() at Microsoft.Support.SEOInfrastructureService.PhantomJS.PhantomJSRunner.WaitForExit(Process process, Int32 waitTime, StringBuilder dataBuilder, Boolean isTotalProcessTimeout)