Cleaning PATH
October 16, 2023
If you want to clean the PATH variable easily and remove all duplicate entries using RapidEE, you can use the following command-line:
For User PATH:
rapidee -S -C -U PATH "%PATH%"
For System PATH:
sudo rapidee -S -C -M PATH "%PATH%"
These command line options tell RapidEE to:
- -S
: Set value.
- -C
: Cleanup variable value (remove duplicate paths and empty elements).
- -U
or -M
: Process user (-U
) or system (machine) (-M
) variables.
Please remember to run this command from an active Command Prompt session with administrative privileges if you are adjusting the system (-M
) PATH.
Also, ensure your RapidEE command-line executable is either in the system PATH, or replace rapidee
with the full path to the executable.