不小心删了(或覆盖了)window系统变量的PATH的怎么办?
=》快速入口
找一台和你系统差不多的电脑,新建一个path,把它的变量值复制进去就可以了。window的电脑,系统的变量都是差不多的。
可以用一下我的,window,64位:
C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:WindowsSystem32OpenSSH;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsDAL;C:Program FilesIntelIntel(R) Management Engine ComponentsDAL;C:Program Files (x86)NVIDIA CorporationPhysXCommon
=》起因:
- 偶尔手贱,不小心删了系统的PATH;
- 因为不够了解,PATH是大小写不敏感的,自己新建了一个path,也会覆盖掉原来的PATH。
(在下是第二种情况,因为之前突然脑洞大开了一下)
=》经过:
除了我们后来配的环境变量,就连window系统自带的变量也没了。
=》结果:
方案一:
好不容易联系上电脑客服,
“你有没有备份系统呀?”
“没有。”
“那找个时间过来重装一下系统。”
方案二:
为了省两百块钱重装系统的钱。
可以尝试,
找一台差不多系统的电脑,新建一个path,然后把它的变量值复制到你的电脑,就可以了。
我的电脑是window,64位的,普通大众,差不多的话,可以直接复制我的。
C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:WindowsSystem32OpenSSH;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsDAL;C:Program FilesIntelIntel(R) Management Engine ComponentsDAL;C:Program Files (x86)NVIDIA CorporationPhysXCommon
