Skip to content

Instantly share code, notes, and snippets.

@me-suzy
Created November 24, 2025 21:30
Show Gist options
  • Select an option

  • Save me-suzy/7daf7466ef74e92344af36f7c6914888 to your computer and use it in GitHub Desktop.

Select an option

Save me-suzy/7daf7466ef74e92344af36f7c6914888 to your computer and use it in GitHub Desktop.
run_simplu.bat
@echo off
cd /d "%~dp0"
echo Verificare stare Chrome Debug (port 9222)...
REM Test efectiv dacă portul 9222 răspunde
powershell -Command "$result = Test-NetConnection -ComputerName localhost -Port 9222 -InformationLevel Quiet -WarningAction SilentlyContinue; if ($result) { exit 0 } else { exit 1 }" >nul 2>&1
if %errorlevel% equ 0 (
echo [INFO] Chrome Debug este DEJA PORNIT si asculta pe portul 9222.
echo Se porneste direct scriptul Python...
) else (
echo [INFO] Chrome Debug NU este pornit.
echo Se lanseaza start_chrome_debug.bat...
start "" "start_chrome_debug.bat"
echo Se asteapta 5 secunde pentru initializarea Chrome...
timeout /t 5
)
echo.
echo ==========================================
echo PORNIRE SCRIPT AUTOMATIZARE
echo ==========================================
python "+FINAL 3 - asta pornesti SIMPLU.py"
echo.
echo Script finalizat.
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment