@echo off
rem please run the file as an administrator
rem DefalutPath
set a=D:\app\58230\product\11.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\58230\AppData\Local\Microsoft\WindowsApps
rem JAVA_HOME
set b=C:\Program Files\Java\jdk-13.0.2
rem Mysql
set c=C:\Program Files\MySQL\MySQL Server 5.7\bin
rem JDBC
set d=D:\tools\01-java\MySql Connector Java 5.1.23\mysql-connector-java-5.1.23-bin.jar
setx /m JAVA_HOME "%b%"
setx /m path "%%JAVA_HOME%%\bin;%c%;%a%"
setx /m classpath ".;%d%"
pause
文章目录1.自我编写小功能1.自我编写小功能@echo offrem please run the file as an administrator rem DefalutPathset a=D:\app\58230\product\11.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\