环境变量太长解决终极办法:
新建一个环境变量path1,
将path的长串字符串复制出来作为path1的值;
然后将path的值全删,然后保留默认的值:
%SystemRoot%system32;%SystemRoot%;%SystemRoot%System32Wbem;
(本人保留了WindowsPowerShell)
%SystemRoot%system32;%SystemRoot%;%SystemRoot%System32Wbem;%SYSTEMROOT%System32WindowsPowerShellv1.0;
然后在path中加入path1:%path1%
重启cmd即可
D:sshxshellinstallation;C:Program Files (x86)Common FilesOracleJavajavapath;C:Program Files (x86)Common FilesNetSarang;%JAVA_HOME%/bin;%JAVA_HOME%/jre/bin;E:applenovoproduct11.2.0dbhome_1in;C:Program Files (x86)LenovoFusionEngine;C:Program Files (x86)InteliCLS Client;C:Program FilesInteliCLS Client;C:Program Files (x86)NVIDIA CorporationPhysXCommon;%SystemRoot%system32;%SystemRoot%;%SystemRoot%System32Wbem;%SYSTEMROOT%System32WindowsPowerShellv1.0;C:Program FilesIntelIntel(R) Management Engine ComponentsDAL;C:Program FilesIntelIntel(R) Management Engine ComponentsIPT;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsDAL;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsIPT;C:Program Files (x86)iFLYTEKVoiceAssistantSpeechPlusRuntime;C:Program Files (x86)LenovoVoice SDK;C:Program Files (x86)Microsoft SQL Server100ToolsBinn;C:Program FilesMicrosoft SQL Server100ToolsBinn;C:Program FilesMicrosoft SQL Server100DTSBinn;C:Program Files (x86)Microsoft SQL Server100ToolsBinnVSShellCommon7IDE;C:Program Files (x86)Microsoft Visual Studio 9.0Common7IDEPrivateAssemblies;C:Program Files (x86)Microsoft SQL Server100DTSBinn;D:Mysqlinstallationin;C:WindowsSystem32;D:;Eclipse_newVersionMinGWin;D:Gitinstallationcmd;%MAVEN_HOME%/bin;D:TortoiseSVNinstallationin;C:Program Files (x86)Common Fileslenovoeasyplussdkin;D:VisualSVNinstallationVisualSVN Serverin;%SYSTEMROOT%System32OpenSSH;C:Program FilesMicrosoftWeb Platform Installer;D:SQL.Server.2008.企业版.R2shareDirs(x86)Microsoft SQL Server100ToolsBinn;D:SQL.Server.2008.企业版.R2shareDirsMicrosoft SQL Server100ToolsBinn;D:SQL.Server.2008.企业版.R2shareDirsMicrosoft SQL Server100DTSBinn;D:SQL.Server.2008.企业版.R2shareDirs(x86)Microsoft SQL Server100ToolsBinnVSShellCommon7IDE;D:SQL.Server.2008.企业版.R2shareDirs(x86)Microsoft SQL Server100DTSBinn;D:puttyinstallationPuTTY;D: odejsinstallation;C:Program FilesIntelWiFiin;C:Program FilesCommon FilesIntelWirelessCommon