"'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.
- To do so, rigth-click on the
Computer
icon (on the Desktop or Start Menu) and chooseProperties
; - On the top left, click on
Advanced system settings
; - A small window pops up. Click on
Environment Variables...
at the bottom; - On the Panel
User variables for [your name here]
choose the line starting withPATH
(generally, the second); - 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; - At the very end of the
value
add a ";" if there is none, then addC:\Windows\System32;
(mind the ; and the end); - 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.