v2.0 Major release!
New
- Env_UserTemp - Adds an environment variable and removes it on script exit.
- Env_UserAddFirst, Last, Sort, and Unique - Controls which directory is searched first in case of duplicates.
- Env_UserAddFirstUnblock - Unblocks the directory before adding it to PATH.
- Env_UserAddFirstFast / Env_UserAddFirstUnblockFast - Disables broadcasting which takes about 0.25 seconds each!
- See the script file for the full list of function names.
Breaking Changes
- Error Values are now
1
for Success and0
for value already added or removed0
can also mean directory does not exist for Env_UserTemp and its variants only.
- Exceptions are thrown whenever something is wrong.
- An Access is denied error is thrown if you incorrectly use a Env_System function.
Quality of Life Changes
- All included functions now begin with
Env_
to make things simpler. - Script has been reduced to about ~250 lines. Most functions are just variants.