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

Max*_*mus 29 windows-7 command-line cmd.exe

不确定我做了什么,但自过去 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>
Run Code Online (Sandbox Code Playgroud)

如何解决此错误?

std*_*err 41

请尝试以下操作。

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

来源

  • 如果最终在相当“异国情调”的键下找到了一个 AutoRun 条目(来自已删除的 Anaconda 安装): Computer\HKEY_USERS\S-1-5-21-1022529333-140522832-1157387970-3781\Software\Microsoft\Command Processor 这仅显示搜索“命令处理器”(在按键中)时作为第三次或第四次点击。这意味着您可能需要稍微调整一下才能成功。 (2认同)