编写启动脚本
@echo off
D:
cd "Program Files\timer"
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
:begin
echo 正在启动,请稍后....
java MyTimer
@pause
@echo off
D:
cd "Program Files\timer"
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
:begin
echo 正在启动,请稍后....
java MyTimer
@pause