https://github.com/froggdev/batch_add2path
A simple script to safely add path to Windows PATH
https://github.com/froggdev/batch_add2path
Last synced: 4 months ago
JSON representation
A simple script to safely add path to Windows PATH
- Host: GitHub
- URL: https://github.com/froggdev/batch_add2path
- Owner: FroggDev
- Created: 2018-03-25T14:35:21.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-29T21:53:47.000Z (about 8 years ago)
- Last Synced: 2025-09-14T21:37:42.042Z (9 months ago)
- Language: Batchfile
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BATCH_add2path
A simple script to add path to Xindows PATH
## Script call without argument :
```add2path.bat```
will add to the PATH the DefaultList defined in the file
set DefaultList=C:\dev\bin\git\bin C:\dev\bin\php C:\dev\bin\composer C:\dev\bin\ruby\bin C:\dev\bin\node
## Script call with arguments:
```add2path.bat C:\dev\bin\git\bin C:\dev\bin\php```
will add to the PATH the arguments list
## Specificities :
* Check if the path already exist in the PATH (add only new path to PATH)
* Check if folder exist phisically before trying to add to the PATH
* Pause display to prevent accidental use of the script