Forrest logo
back to the doskey tool

doskey:tldr:8805b

doskey: Create a new macro for a specific executable.
$ doskey /exename=${executable} ${name} = "${command}"
try on your machine

This command is used in the Windows command prompt to create a macro using the "doskey" command. Here is the breakdown of each component:

  • doskey is a command-line utility in Windows that allows you to create macros or aliases for commands.
  • /exename=${executable} is an option that specifies the name of the executable for which the macro will be defined. This option is useful when you want to create different macros based on the executable being used.
  • ${name} is a placeholder that represents the macro name that you want to define.
  • "${command}" is the command or series of commands that will be executed when the macro is used.

In summary, this command is defining a macro named ${name} that will be applied when the specified ${executable} is used. When the macro is executed, the ${command} will be run.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the doskey tool