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
 

Neemobeer

Windows Forum Team
Staff member
If you mean environment variable the max size is 32767 characters in XP and no limit on Vista and newer
 

Edward Feustel

New Member
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.
 

Neemobeer

Windows Forum Team
Staff member
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.
 

Neemobeer

Windows Forum Team
Staff member
Key path if you want to edit the value in the registry
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
 
Top