1
By using setx "%path%;c:\whateverFolder
I just copy system path variable to users one, therefore duplicating it, and only after it the required folder is added. Is it possible to add it to SYSTEM path variable. not to the users path and if it is, how can I do it?
1
There is the
– aschipfl – 2019-06-25T08:58:01.730/M
switch ofsetx
. However,setx
limits strings to a length of 1024 bytes, which might not be enough; and, even worse,%PATH%
holds a concatenation of user and systemPATH
variables, sosetx
totally messes messes up with them; take a look at this answer on StackOverflow...