250602-Chrome开机自启动.ChromeWindows上开机自启动-Google-Chrome-网络浏览器
Created At : 2025-06-02 15:33
Chrome开机自启动:shell:startup 工作目录: C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
全屏参数设置清单1 1 --kiosk --disable-features=RendererCodeIntegrity --disable-background-timer-throttling --disable-renderer-backgrounding --disable-backgrounding-occluded-windows --disable-component-update --disable-default-apps --no-default-browser-check --no-first-run --disable-pinch --overscroll-history-navigation=0
全屏参数设置清单2 1 2 3 4 5 6 7 8 9 10 11 12 13 start "" "%CHROME%" ^ --kiosk ^ --disable-features=RendererCodeIntegrity ^ --disable-background-timer-throttling ^ --disable-renderer-backgrounding ^ --disable-backgrounding-occluded-windows ^ --disable-component-update ^ --disable-default-apps ^ --no-default-browser-check ^ --no-first-run ^ --disable-pinch ^ --overscroll-history-navigation=0 ^ %HMI_URL%
开启系统Http监控Up状态后,开启浏览器全屏 VBS : chrome-silence.vbs 1 2 Set WshShell = CreateObject("WScript.Shell") WshShell.Run "C:\devops\winsw\chrome-kiosk.bat", 0, False
chrome-kiosk.bat 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 @echo off setlocal set HEALTH_URL=http://localhost/health set HMI_URL=http://localhost/ set CHROME=C:\Users\Administrator\AppData\Local\Google\Chrome\Application\chrome.exe :wait curl -s "%HEALTH_URL%" | findstr "UP" >nul if errorlevel 1 ( timeout /t 1 /nobreak >nul goto wait ) taskkill /F /IM chrome.exe >nul 2>&1 timeout /t 1 /nobreak >nul start "" "%CHROME%" ^ --kiosk ^ %HMI_URL% ^ --no-first-run ^ --disable-pinch ^ --overscroll-history-navigation=0 endlocal