add_jre.bat
::添加环境变量JAVA_HOME@echo offecho 添加java环境变量set regpath=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environmentset evname=JAVA_HOMEset javapath=C:\jre1.8.0_101_32\reg add "%regpath%" /v %evname% /d %javapath% /fpause>nul
mod_path.bat
wmic environment where "name='PATH' and username=''" set VariableValue="%PATH%;%JAVA_HOME%bin"