【问题标题】:Command Prompt not working correctly命令提示符无法正常工作
【发布时间】:2014-02-26 18:29:25
【问题描述】:

每次我安装一个使用命令提示符的新程序时,它仍然无法识别它。比如我已经安装了gitnodejs并添加到%PATH%,但是在我的命令提示符下仍然无法识别。

%Path% = C:\Program Files (x86)\WANdisco\Subversion;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\nodejs

如果需要发布任何其他系统变量,请告诉我!提前感谢您的帮助!

【问题讨论】:

  • 我认为你的路径应该包含 C:\Program Files (x86)\Git\bin 而不是 C:\Program Files (x86)\Git\cmdnodejs 可能有类似的问题。
  • 这不起作用。我仍然收到无法识别的错误消息。

标签: command environment-variables command-prompt


【解决方案1】:

不要使用

 %Path% = 

使用这个:

 Path= 

并且会针对批处理文件的范围进行修改。

要使其全局化,以便在每个 cmd 提示符中可用,您可以使用 SETX 或在控制面板、系统、高级中修改 Windows 环境变量。

【讨论】:

    猜你喜欢
    • 2021-08-17
    • 1970-01-01
    • 2015-01-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多