Paul-Dieter Klumpp eb713c53f0 clarification :) | 9 년 전 | |
---|---|---|
ANT_HOME.01env | 9 년 전 | |
CLASSPATH.01env | 9 년 전 | |
GRADLE_HOME.01env | 9 년 전 | |
GRADLE_OPTS.01env | 9 년 전 | |
HTTPS_PROXY.01env | 9 년 전 | |
HTTP_PROXY.01env | 9 년 전 | |
JAVA_HOME.01env | 9 년 전 | |
JAVA_OPTS.01env | 9 년 전 | |
JYTHON_HOME.01env | 9 년 전 | |
LICENSE | 9 년 전 | |
M2_HOME.01env | 9 년 전 | |
Path.02env | 9 년 전 | |
README.md | 9 년 전 | |
TIBANT_HOME.01env | 9 년 전 | |
TIBCO_HOME.01env | 9 년 전 | |
VAGRANT_HOME.01env | 9 년 전 | |
envvar.bat | 9 년 전 |
WinEnvVar is a batch script to ease the usage of Windows environment variables. It manages the variables with files. A run of the script sets all variables for the current logged in Windows user.
I made this little batch script because I was unsatisfied with the usability of the Windows environment variable editor. The script lets you define environment variable just by using files. Whereas the files' names are the names of the variables and the contents are the values.
Since Windows 95, the environment variable editor has been the same small window which could not be changed in size. It always was a time consuming task to manage the variables. If you ever found a software which demanded of you to edit variables in their installation manual, you know what I mean.
And yea, I still write batch scripts. Desktop computers at work are on Windows.
If you want a environment variable called 'JAVA_HOME', just name your file 'JAVA_HOME.01env
'. Put a single line inside that file. It will be the value.
Files with the extension '01env' are being evaluated first. After that evaluation run, the variables are being saved in memory. In the files, having the extension, '02env' you can then use the variables of the first run.
For example... 'JAVA_HOME.01env':
C:\Program Files\jdk1.7.0_51-x64
'Path.02env' looks like this:
%JAVA_HOME%\bin
Then, after a run, your Path-Variable holds C:\Program Files\jdk1.7.0_51-x64\bin
and your _JAVAHOME-variable holds C:\Program Files\jdk1.7.0_51-x64
as values.
Just run 'envvar.bat' inside the directory where all your 01env- and 02env-files are. Afterwards, if you have any open command prompts, restart them so they reload the environment variables.
The batch script is licensed under the terms of the GPL Version 3. See the LICENSE file in this directory.