https://github.com/1111mp/envpath
📌 A tool to add or remove values from the Windows PATH variable.
https://github.com/1111mp/envpath
Last synced: over 1 year ago
JSON representation
📌 A tool to add or remove values from the Windows PATH variable.
- Host: GitHub
- URL: https://github.com/1111mp/envpath
- Owner: 1111mp
- License: mit
- Created: 2024-09-13T10:18:32.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-13T11:30:08.000Z (almost 2 years ago)
- Last Synced: 2025-02-13T14:24:49.646Z (over 1 year ago)
- Language: Rust
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🪟 envpath
📌 A tool to add or remove values from the Windows PATH variable. This project is inspired by [PathEd](https://github.com/awaescher/PathEd).
## Examples
###### Add a value to the Windows PATH:
`envpath.exe add "C:\Program Files\path"`
###### Remove a value from the Windows PATH:
`envpath.exe remove "C:\Program Files\path"`
###### Usage in a NSIS install script:
`envpath` is used in the [nvm-desktop](https://github.com/1111mp/nvm-desktop) NSIS install script to [add](https://github.com/1111mp/nvm-desktop/blob/a19ecd3c5d22d9766bf666ffd72b9c04e2ff4a56/src-tauri/templates/nsis-hooks.nsh#L9) and [remove](https://github.com/1111mp/nvm-desktop/blob/a19ecd3c5d22d9766bf666ffd72b9c04e2ff4a56/src-tauri/templates/nsis-hooks.nsh#L22) the application location to the Windows PATH.
## Noteworthy
`envpath` will ...
- ... just add values if they are new to the PATH. So it can be called multiple times.
- ... ignore removals if the value is not part of the PATH. So it can be called multiple times as well.