启动.bat 891 B

1234567891011121314151617181920212223242526272829
  1. @echo off
  2. chcp 936 >nul
  3. rem Double-click to start. Prefer Python 3.11 for YOLO/interception.
  4. cd /d "%~dp0"
  5. set "PYW="
  6. if exist "%LocalAppData%\Programs\Python\Python311\pythonw.exe" (
  7. set "PYW=%LocalAppData%\Programs\Python\Python311\pythonw.exe"
  8. )
  9. if not defined PYW if exist "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\pythonw.exe" (
  10. set "PYW=C:\Users\Administrator\AppData\Local\Programs\Python\Python311\pythonw.exe"
  11. )
  12. if not defined PYW (
  13. where pythonw.exe >nul 2>nul
  14. if not errorlevel 1 set "PYW=pythonw.exe"
  15. )
  16. if not defined PYW if exist "D:\app\Python\Python38\pythonw.exe" (
  17. set "PYW=D:\app\Python\Python38\pythonw.exe"
  18. )
  19. if not defined PYW (
  20. echo pythonw.exe not found / �Ҳ��� pythonw��
  21. echo Install Python 3.11+ then run ��װ����.bat
  22. pause
  23. exit /b 1
  24. )
  25. start "" "%PYW%" "lie_watcher.py"
  26. exit /b 0