I am trying to create a windows batch file to automatically set the environment variable to use python 2.4 or python 3.3.
Both python 2.4 and 3.3 are installed on my sys
The SETX
command is very reliant on the syntax of the command. The following example shows the basic syntax to use to set the path environment variable:
SETX PATH "%PATH%;Path to new thing added" /M
This will also add the new path to the system registry, but still won't add it for the current session. Re-launch the terminal for it to take affect.