batch-file Basic Macro


Example

Using DOSKEY, we can create macros to simplify typing many commands in command prompt. Take a look at the following example.

DOSKEY macro=echo Hello World

Now if you type macro in the command prompt, it would return Hello World.