命令行错误“系统找不到指定的路径。”


20

不知道我做了什么,但是因为过去5个星期,但是The system cannot find the path specified.当我运行任何命令或启动cmd时出现此错误。这是我在启动命令行时得到的:

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

C:\Users\Jason>

如何解决此错误?

Answers:


30

请尝试以下方法。

  1. 打开注册表编辑器(按+ R,键入regedit并单击Enter)。
  2. 导航至HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun并清除值。
  3. 同时检查HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun

资源


还要看一下ComSpec的HKLM \ SYSTEM \ CurrentControlSet \ Control \ Session Manager \ Environment
kevinf '17

还有其他技巧吗?我遇到同样的问题,但是在命令处理器下没有自动运行功能吗?
Didier A.

3

您的路径一定是错误的。问题是您的命令提示符找不到与您输入的内容匹配的程序。

  • 在您的桌面上,用鼠标右键单击“我的电脑”,然后单击“属性”
  • 在“系统属性”窗口中,单击“高级”选项卡。
  • 在“高级”部分中,单击“环境变量”按钮。
  • 在“环境变量”窗口中,突出显示“系统变量”部分中的“路径”变量,然后单击“编辑”按钮。

我不知道您需要的默认PATH值,但我敢打赌您有不正确的东西。在这里发布您的内容。


有几个无效的路径。我删除了它们,重新启动后仍然出现相同的错误。我检查了路径中的用户名和系统。
Maximus 2014年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.