在Windows 7中setx命令的位置是什么? [英] What is the location of the setx command in Windows 7?

查看:363
本文介绍了在Windows 7中setx命令的位置是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows中意外删除了我的Path变量。但我有一个副本保存在一个文本文件。我不能修改路径变量从开始 - >计算机 - >属性 - >高级系统设置 - >环境变量等,因为Windows无法找到systempropertiesadvanced.exe(因为路径为空)。所以我想使用setx命令从cmd.exe设置路径。但我得到的错误,setx不是一个公认的命令(可能是因为路径是空的)。那么setx命令在Windows 7中位于哪里,通常?

I accidentally deleted my Path variable in Windows. But I have a copy of it saved in a text file. I cannot modify the Path variable from Start->Computer->Properties->Advanced System Settings->Environment Variables, etc. because Windows cannot find systempropertiesadvanced.exe (since the path is empty). So I want to set the path using the setx command from cmd.exe. But I get the error that setx is not a recognized command (probably because the path is empty). So where is the setx command located in Windows 7, usually? Also, if I am missing something here in my reasoning, please let me know.

推荐答案

这是在 C:\Windows \System32 (在64位Win7上),与SystemPropertiesAdvanced.exe位置相同。

It is in C:\Windows\System32 (on 64-bit Win7) which is the same location as SystemPropertiesAdvanced.exe.

这篇关于在Windows 7中setx命令的位置是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆