本帖最后由 yhcfsr 于 2020-10-17 16:57 编辑
有set语句不能写成一行,因为set语句行结束才会生效.- @echo off &%1 start "" mshta vbscript:createobject("shell.application").shellexecute("""%~0""","::",,"runas",1)(window.close)&exit
- cd /d "%~dp0"
- set "path=.\jdk\jre\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%;%path%"
- set "JRE_HOME=.\jdk\jre"
- set "JAVA_HOME=.\jdk\jre\bin"
- set "CLASSPATH=.;dist\*"
- start "" "java" -server -Xmx1g -Xms1g -Xmn2g server.Start > 运行输出日志.log 2>&1 &exit
复制代码
|