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打包发布
本文介绍了一个bat脚本,用于实现Windows系统下Tomcat的自动启动,并使用Chrome或IE浏览器全屏打开指定网页。该脚本还包含了端口检查及重试机制,并提供了一种全屏打印的方法。
1244

被折叠的 条评论
为什么被折叠?



