@echo off
setlocal
set "CHROME=%ProgramFiles%\Google\Chrome\Application\chrome.exe"
if not exist "%CHROME%" set "CHROME=%ProgramFiles(x86)%\Google\Chrome\Application\chrome.exe"
if not exist "%CHROME%" set "CHROME=%LocalAppData%\Google\Chrome\Application\chrome.exe"
if not exist "%CHROME%" (
 echo No se encontro Google Chrome. Instala Chrome antes de continuar.
 pause
 exit /b 1
)
powershell.exe -NoProfile -Command "$ws=New-Object -ComObject WScript.Shell; $link=$ws.CreateShortcut([IO.Path]::Combine([Environment]::GetFolderPath('Desktop'),'SANDWICH Cocina.lnk')); $link.TargetPath=$env:CHROME; $q=[char]34; $link.Arguments='--user-data-dir='+$q+$env:LOCALAPPDATA+'\SANDWICH-Cocina'+$q+' --kiosk-printing --app=https://sandwich.neutekcorp.com/operations.php?page=kds'; $link.IconLocation=$env:CHROME+',0'; $link.Description='Abrir Cocina con impresion automatica'; $link.Save()"
echo Impresora predeterminada de Windows: GA-H80300 Series.
echo Cierra las ventanas anteriores de este acceso antes de volver a abrirlo.
start "" "%CHROME%" --user-data-dir="%LOCALAPPDATA%\SANDWICH-Cocina" --kiosk-printing --app="https://sandwich.neutekcorp.com/operations.php?page=kds"
endlocal
