I received an error on Windows 8 after trying to use SETX to add JAVA.exe to the Windows PATH variable:
WARNING: The data being saved is truncated to 1024 characters.
After a reboot, I notice that the PATH is indeed much shorter than before. I've since read that SETX can't handle more than 1024 characters. That would have been good to know in the article which recommended using it.
I am wondering if my system will be unstable now that (presumably) some of the directories no longer appear in the PATH variable. The end of the string is clearly cut off mid-directory (at Pr):
(...) ;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Pr
Is there any way to roll back or anywhere that the previous value of PATH was captured. Man, I can't believe this kind of stuff can still happen in Windows after 29 years.
reg query "%reglocation%"HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\EnvironmentorHKCU\Environmentor whatever You may be right re backup (Though he did restart) but what is the reg key/location for what you are calling the backup? – barlop Sep 17 '14 at 00:33HKLM\System\ControlSet002\...I'm not sure if that's overwritten on the first or second restart. Come to think of it, maybe the first, in which case it's already too late. – Bob Sep 17 '14 at 00:46%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\. Everything else is 3rd party software. nVidia will re-add its entries on driver update, and it works well even without. Path-related problems are rare and usually apparent, so you can just deal with them case-by-case. About expanding path: use pathman.exe from resource kit. But bear in mind limits http://superuser.com/a/387625 – LogicDaemon Oct 07 '16 at 15:19