最佳答案
If I execute set PATH=%PATH%;C:\\Something\\bin
from the command line (cmd.exe
) and then execute echo %PATH%
I see this string added to the PATH. If I close and open the command line, that new string is not in PATH.
How can I update PATH permanently from the command line for all processes in the future, not just for the current process?
I don't want to do this by going to System Properties → Advanced → Environment variables and update PATH there.
This command must be executed from a Java application (please see my other question).