Saturday, December 20, 2014

Is there a way to permanently set a environment variable with more than 4096 characters on Window OS?

I'm currently searching for a way to overcome the limit off the environment variable length on Window OS, and the maximum limit I have achieved is 4133. But for my project, I need to check the system installation with longer path environment (8000, 16000 or even the maximum 32000).


setx command is out, since it automatically truncated the path environment to 1024 character.


I have tried the API SetEnvironmentVariable() of PowerShell and it seems to have limit of ~4133 character, the rest is automatically truncated or not function properly.


Is there anyway to overcome this limit ?

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...