如何恢复已删除的环境变量? [英] How to recover deleted environment variables?

查看:56
本文介绍了如何恢复已删除的环境变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试调试 Visual Studio 社区时,我(根据另一个论坛的建议)删除了所有系统的环境变量.我意识到这样做是一个巨大的错误!开始按钮上的右键菜单没有任何作用(我有 Windows 10).无法在设置"应用中执行任何操作,甚至无法创建新帐户或重置计算机.也无法打开任何需要管理员批准的应用程序.

In a lazy attempt to debug Visual Studio Community, I (as per recommendation from another forum) deleted all of the system's environment variables. I realized doing this was a HUGE mistake! Nothing works in the right-click menu on the start button (I have Windows 10). Can't do anything in the Settings app, can't even create new accounts or reset computer. Can't open any application that requires administrator approval, either.

有人知道如何恢复这些变量吗?只是操作系统工作所必需的,我不在乎我的应用程序是否创建了特殊的,我可以稍后卸载/重新安装.当我键入时,我在尝试重置计算机后收到一条错误消息,说系统找不到输入的环境选项",基本上确认这是问题所在.

Anybody know how I can restore these variables? Just the ones necessary for the OS to work, I don't care if my applications created special ones, I can un/reinstall later. As I type I get an error message after attempting to reset computer saying "The system could not find the environment option that was entered," basically confirming this is the issue.

谢谢!

硬件:AMD A10-6700 APU 与 Radeon(tm) 高清显卡 3.70 GHz12.0 GB 内存64位

Hardware: AMD A10-6700 APU with Radeon(tm) HD Graphics 3.70 GHz 12.0 GB RAM 64-bit

推荐答案

  1. 在 Windows 10 中,导航至开始 > 设置 > 更新和安全 > 恢复
  2. 在高级启动下,点击立即重启
  3. 电脑重启进入高级启动后,点击疑难解答
  4. 点击刷新你的电脑

Windows 10 会恢复并保留所有文件和应用,但会删除驱动程序和自定义设置.

Windows 10 restores, keeps all files and apps but removes drivers and custom settings.

这篇关于如何恢复已删除的环境变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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