Not sure what I did but since past 5 weeks but I am getting this error The system cannot find the path specified. when I run any command or start cmd. Here is what I get when I start command line:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
The system cannot find the path specified.

C:\Users\Jason>

How do I troubleshoot this error?

up vote 21 down vote accepted

Try the following.

  1. Open the Registry Editor(press + R, type regedit and hit Enter) .
  2. Navigate to HKCU\Software\Microsoft\Command Processor\AutoRun and clear the values.
  3. Also check HKLM\Software\Microsoft\Command Processor\AutoRun.

Source

  • Also look at HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment for the ComSpec – kevinf Aug 4 '17 at 0:03
  • Any other tricks? I get the same issue, but don't have AutoRun under Command Processor? – Didier A. Oct 25 '17 at 3:34

Your Path must be wrong. The issue is that your command prompt can't find any programs to match what you're entering.

  • From your desktop, rick-click "My Computer" and click "Properties"
  • In the System Properties window, click on the Advanced tab.
  • In the Advanced section, click the Environment Variables button.
  • In the Environment Variables window , highlight the Path variable in the Systems Variable section and click the Edit button.

I don't know the default PATH values you need, but I am willing to bet you have something that isn't right. Post what you have here.

  • There were couple of invalid paths. I removed them, rebooted but still getting same error. I checked Path for my username and also system. – Maximus Mar 11 '14 at 0:14

protected by Community May 7 '17 at 18:12

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.