"'doskey' is not recognized" when using Cmder

Solution 1:

I finally found a solution for this error (and many others I was having with Cmder).

Actually, I just added C:\Windows\System32\ to the PATH.

  1. To do so, rigth-click on the Computer icon (on the Desktop or Start Menu) and choose Properties;
  2. On the top left, click on Advanced system settings;
  3. A small window pops up. Click on Environment Variables... at the bottom;
  4. On the Panel User variables for [your name here] choose the line starting with PATH (generally, the second);
  5. Double click on the value (right part) of aforementioned line or click on edit underneath the panel and be careful NOT to delete its content;
  6. At the very end of the value add a ";" if there is none, then add C:\Windows\System32; (mind the ; and the end);
  7. Click Ok twice to validate the update.

P.S.: You have to restart (close and reopen) your Cmder for these changes to take effect.

That was it!

Solution 2:

Correct path for doskey.exe should be C:\Windows\System32

Check also if your path does not exceed 2047 characters. When PATH variable is to long paths might not working.