@echo off
start chrome.exe http://127.0.0.1:8080/url/path
choice /t 10 /d y /n >nul
taskkill /f /im chrome.exe
ps:保存为批处理,打开谷歌浏览器访问指定地址,延迟指定时间自动关闭谷歌浏览器.上述内容是设置的10秒
@echo off
start chrome.exe http://127.0.0.1:8080/url/path
choice /t 10 /d y /n >nul
taskkill /f /im chrome.exe
ps:保存为批处理,打开谷歌浏览器访问指定地址,延迟指定时间自动关闭谷歌浏览器.上述内容是设置的10秒