Files
shaguabijia-app-server/scripts/show_device_regids.bat
T

14 lines
597 B
Batchfile

@echo off
REM Show all device_id + push regIds (push_token / registration_id) from the
REM local SQLite DB. Double-click this file to see everything, or run from a
REM console. Optional substring filter: show_device_regids.bat xiaomi
REM Works from ANY directory (locates project root + venv python by itself).
REM ASCII-only comments: cmd parses .bat in the console codepage (GBK); UTF-8
REM Chinese here gets mangled into bogus commands.
cd /d "%~dp0.."
set "PY=python"
if exist ".venv\Scripts\python.exe" set "PY=.venv\Scripts\python.exe"
"%PY%" "scripts\show_device_regids.py" %*
echo.
pause