Windows 10 Extending Environment Strings

Edward Feustel

New Member
There appears to be a maximum length requirement on Environment strings of 2047. Apparently
I went far past this in Windows 7 PRO and can not now sensibly make a change.

Is there a way that I can increase this length or use intermediate environment strings to build one
substantially longer than 2047.

Thanks,
Ed Feustel
 
If you mean environment variable the max size is 32767 characters in XP and no limit on Vista and newer
 
When I attempt to save an edited Path in the System Environment I am told that the maximum is 2047.
This may be one part. Editing now splits variables into a list of parts. But since I cannot save an edit, I cannot
reduce the length.
 
Ok yeah that makes more sense. The path limit is 2047. If it's too long you'll need to edit the value in the registry to reduce the size.
 
Key path if you want to edit the value in the registry
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
 
Back
Top