25

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?

36

Try the following.

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

Source

| improve this answer | |
  • Also look at HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment for the ComSpec – kevinf Aug 4 '17 at 0:03
  • 1
    Any other tricks? I get the same issue, but don't have AutoRun under Command Processor? – Didier A. Oct 25 '17 at 3:34
  • Same here, neither paths have "AutoRun" – Flion Feb 15 at 4:58
3

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.

| improve this answer | |
  • 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

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