This is a simple Windows Batchfile script which allows you to append a directory to the path
Created
July 7, 2018 00:14
-
-
Save Richienb/ecc0b59eb2a59023160e3c91cc143c0d to your computer and use it in GitHub Desktop.
Append a directory to the PATH in Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
title Path Modifier | |
cls | |
echo Welcome to Path Modifier! | |
:start | |
echo. | |
set /p newline=Enter the directory to append to the path: | |
set %PATH%=%PATH%;%newline% && echo Path Addition Success | |
goto start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
title Path Viewer | |
cls | |
echo Welcome to Path Viewer! | |
:start | |
echo. | |
echo The Path is: | |
echo %PATH% | |
echo. | |
echo Press any key to reload the path | |
pause>nul | |
cls | |
goto start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment