MS-DOS Internal Commands and DOSKEY Macros in Program ManagerLast reviewed: November 21, 1994Article ID: Q87278 |
The information in this article applies to:
SUMMARYTo invoke an MS-DOS internal command or DOSKEY macro from within Windows Program Manager, use the following syntax:
command.com /c <internal commandname> command.com /c <macroname>These commands run the internal command or macro and then immediately return to Windows Program Manager. If the internal command or macro requires a parameter, you should include that as well.
MORE INFORMATIONThe Windows Program Manager File Run command and program items allow you to start program files (.COM, .EXE, .BAT, .PIF). Program Manager does not recognize MS-DOS internal commands and DOSKEY macros. The DOSKEY utility was added to MS-DOS in MS-DOS version 5.0. The "command.com /c" syntax causes Program Manager to run a copy of the MS-DOS program that processes internal commands, COMMAND.COM. If DOSKEY was loaded before starting Windows, DOSKEY will also be active and able to process DOSKEY macros loaded before starting Windows.
Example 1To perform the command "DIR /P" from Program Manager:
Example 2To create a program item for a DOSKEY macro called "MEM":
For more information on COMMAND, see the "COMMAND" entry in the reference section of the "Microsoft MS-DOS User's Guide and Reference." For version 5.0, this is located on pages 384-386. For more information on DOSKEY, see pages 169-181 and 448-454 of the version 5.0 "Microsoft MS-DOS User's Guide and Reference." To determine if an MS-DOS command is external or internal, check that command's entry in the reference section of the "Microsoft MS-DOS User's Guide and Reference", or query on:
internal and external and msdos and commands |
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |