Created
September 16, 2014 14:26
-
-
Save lucacesari/6e7379388da21775d69d to your computer and use it in GitHub Desktop.
Add a system enviroment variable in Windows
This file contains hidden or 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 | |
REM Usage: add_env_var.bat NEW_ENV_VAR "my_path" | |
REM If the inserted path contains spaces remember to quote it | |
REG ADD "HKLM\SYSTEM\ControlSet001\Control\Session Manager\Environment" /v %1 /t REG_SZ /d %2 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment