diff --git a/kiosko_chrome.bat b/kiosko_chrome.bat index b862374..9923bdb 100644 --- a/kiosko_chrome.bat +++ b/kiosko_chrome.bat @@ -3,9 +3,25 @@ taskkill /F /IM chrome.exe >nul 2>&1 timeout /t 2 /nobreak >nul -start "" "C:\Program Files\Google\Chrome\Application\chrome.exe" ^ +:: Buscar Chrome en rutas comunes +set CHROME= +if exist "C:\Program Files\Google\Chrome\Application\chrome.exe" ( + set CHROME="C:\Program Files\Google\Chrome\Application\chrome.exe" +) +if exist "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" ( + set CHROME="C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" +) +if "%CHROME%"=="" ( + echo No se encontro Chrome. Verifica la instalacion. + pause + exit /b 1 +) + +start "" %CHROME% ^ + --kiosk ^ --kiosk-printing ^ --disable-print-preview ^ --no-first-run ^ --no-default-browser-check ^ + --disable-infobars ^ "https://erp.laboratorioximenacaicedo.com/erp.php?m=turnero&v=kiosko&autoprint=1"