本帖最后由 WHY 于 2020-10-17 16:26 编辑
- @echo off
- if "%~1" NEQ "::" (
- mshta vbscript:CreateObject("WScript.Shell"^).Run("%~s0 ::",0,FALSE^)(window.close^)&&exit
- ) else (
- setlocal enabledelayedexpansion
- set path=.\jdk\jre\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%
- set JRE_HOME=.\jdk\jre&set JAVA_HOME=.\jdk\jre\bin
- set CLASSPATH=.;dist\*
- java -server -Xmx1g -Xms1g -Xmn2g server.Start > 运行输出日志.log 2>&1
- exit
- )
复制代码 这样写成一行:- @echo off&if "%~1" NEQ "::" (mshta vbscript:CreateObject("WScript.Shell"^).Run("%~s0 ::",0,FALSE^)(window.close^)&&exit)else (setlocal enabledelayedexpansion&set path=.\jdk\jre\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%&set JRE_HOME=.\jdk\jre&set JAVA_HOME=.\jdk\jre\bin&set CLASSPATH=.;dist\*&java -server -Xmx1g -Xms1g -Xmn2g server.Start > 运行输出日志.log 2>&1&exit)
复制代码
|