No Description

Paul-Dieter Klumpp eb713c53f0 clarification :) 8 years ago
ANT_HOME.01env f78c7df6f7 Initial commit. Everything and examples. 8 years ago
CLASSPATH.01env f78c7df6f7 Initial commit. Everything and examples. 8 years ago
GRADLE_HOME.01env f78c7df6f7 Initial commit. Everything and examples. 8 years ago
GRADLE_OPTS.01env f78c7df6f7 Initial commit. Everything and examples. 8 years ago
HTTPS_PROXY.01env f78c7df6f7 Initial commit. Everything and examples. 8 years ago
HTTP_PROXY.01env f78c7df6f7 Initial commit. Everything and examples. 8 years ago
JAVA_HOME.01env f78c7df6f7 Initial commit. Everything and examples. 8 years ago
JAVA_OPTS.01env f78c7df6f7 Initial commit. Everything and examples. 8 years ago
JYTHON_HOME.01env f78c7df6f7 Initial commit. Everything and examples. 8 years ago
LICENSE f78c7df6f7 Initial commit. Everything and examples. 8 years ago
M2_HOME.01env f78c7df6f7 Initial commit. Everything and examples. 8 years ago
Path.02env f78c7df6f7 Initial commit. Everything and examples. 8 years ago
README.md eb713c53f0 clarification :) 8 years ago
TIBANT_HOME.01env f78c7df6f7 Initial commit. Everything and examples. 8 years ago
TIBCO_HOME.01env f78c7df6f7 Initial commit. Everything and examples. 8 years ago
VAGRANT_HOME.01env f78c7df6f7 Initial commit. Everything and examples. 8 years ago
envvar.bat f78c7df6f7 Initial commit. Everything and examples. 8 years ago

README.md

WinEnvVar

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.

Why

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.

Files for Variables

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.

Evaluation Order of env-Files

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.

Execution Run

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.

License

The batch script is licensed under the terms of the GPL Version 3. See the LICENSE file in this directory.