14

I have created a doskey macro I want to remove. How do I delete it? How can I see all the macros I have created?

Amit Verma
  • 40,709
  • 21
  • 93
  • 115
Wosh
  • 1,565
  • 2
  • 17
  • 30

1 Answers1

25

Check out the doskey documentation:

Displays doskey macros for all executables

doskey /macros:all

To delete a macro called vlist, type:

doskey vlist =
admdrew
  • 3,790
  • 4
  • 27
  • 39
  • 4
    when I define a doskey in the shell, if I close it the doskey is automatically removed. Is this its normal functionality or there is some other problem? – Wosh Feb 06 '14 at 22:07
  • @Sajuuk Check out https://blogs.msdn.microsoft.com/andrewarnottms/2007/07/09/getting-doskey-macros-to-work-in-powershell/ – admdrew Dec 03 '18 at 19:59