Skip to content

Instantly share code, notes, and snippets.

@Richienb
Created July 7, 2018 00:14
Show Gist options
  • Save Richienb/ecc0b59eb2a59023160e3c91cc143c0d to your computer and use it in GitHub Desktop.
Save Richienb/ecc0b59eb2a59023160e3c91cc143c0d to your computer and use it in GitHub Desktop.
Append a directory to the PATH in Windows

Append A Directory To The Path In Windows

What is this?

This is a simple Windows Batchfile script which allows you to append a directory to the path

@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
@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