Windows系统开机自动启动Tomcat并全屏打开网页bat脚本
Chrome浏览器
@echo off
@echo 启动tomcat
start D:\baijiqun\tomcats\apache-tomcat-7.0.70-37080\bin\startup.bat
setlocal enabledelayedexpansion
:1
netstat -an|findstr 37080 >nul
if errorlevel 1 (
echo 端口未开启
ping /n 10 127.1 >nul
goto 1
) else (
echo 端口已开启
start chrome.exe -kiosk "http://localhost:37080/"
exit
)
IE浏览器
@echo off
@echo 启动tomcat
start D:\baijiqun\tomcats\apache-tomcat-7.0.70-37080\bin\startup.bat
setlocal enabledelayedexpansion
:1
netstat -an|findstr 37080 >nul
if errorlevel 1 (
echo 端口未开启
ping /n 10 127.1 >nul
goto 1
) else (
echo 端口已开启
start iexplore.exe -k "http://localhost:37080"
exit
)
Chrome全屏打印无预览代码
start chrome.exe --kiosk --kiosk-printing "http://www.baidu.com/"
exit
通过battoexe打包发布