Skip to main content

Manage macros, windows commands and command lines.

:: To list available macros:
doskey /macros

:: To create a new macro:
doskey <name> = "<command>"

:: To create a new macro for a specific executable:
doskey /exename=<executable> <name> = "<command>"

:: To remove a macro:
doskey <name> =

:: To display all commands that are stored in memory:
doskey /history

:: To save macros to a file for portability:
doskey /macros > <macinit>

:: To load macros from a file:
doskey /macrofile = <macinit>