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

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

问题描述

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

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:WindowsSystem32(在 64 位 Win7 上)与 SystemPropertiesAdvanced.exe 的位置相同.

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

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

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