【问题标题】:What is the location of the setx command in Windows 7?Windows 7 中 setx 命令的位置是什么?
【发布时间】:2013-04-22 04:36:02
【问题描述】:

我不小心删除了 Windows 中的 Path 变量。但我有一份保存在文本文件中的副本。我无法从 Start->Computer->Properties->Advanced System Settings->Environment Variables 等修改 Path 变量,因为 Windows 找不到 systempropertiesadvanced.exe(因为路径为空)。所以我想使用 cmd.exe 中的 setx 命令设置路径。但我得到 setx 不是可识别命令的错误(可能是因为路径为空)。那么 Windows 7 中的 setx 命令通常在哪里呢?另外,如果我在推理中遗漏了什么,请告诉我。

【问题讨论】:

    标签: windows-7 command-line environment-variables


    【解决方案1】:

    它位于C:\Windows\System32(在 64 位 Win7 上),与 SystemPropertiesAdvanced.exe 位于同一位置。

    【讨论】:

    • 完美。我只是运行 SystemPropertiesAdvanced.exe 并从那里设置路径。
    猜你喜欢
    • 2015-04-02
    • 2013-06-08
    • 1970-01-01
    • 2018-11-21
    • 2011-03-01
    • 2011-02-23
    • 1970-01-01
    • 2015-09-25
    • 1970-01-01
    相关资源
    最近更新 更多