Quantcast
Channel: Overcoming the 1024 character limit with setx - Super User
Viewing all articles
Browse latest Browse all 12

Overcoming the 1024 character limit with setx

$
0
0

I am trying to set environment variables using the setx command, such as follows

setx PATH "f:\common tools\git\bin;f:\common tools\python\app;f:\common tools\python\app\scripts;f:\common tools\ruby\bin;f:\masm32\bin;F:\Borland\BCC55\Bin;%PATH%"

However, I get the following error if the value is more then 1024 characters long:

WARNING: The data being saved is truncated to 1024 characters.

SUCCESS: Specified value was saved.

But some of the paths in the end are not saved in variable, I guess due to character limit as the error suggests.


Viewing all articles
Browse latest Browse all 12

Trending Articles