| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- @echo off
- REM Stop Digital Human Services Script
- REM This script stops all frontend and backend services
- echo ========================================
- echo Stopping Digital Human Services...
- echo ========================================
- echo.
- REM Stop Node.js processes (frontend)
- echo [1/3] Stopping frontend service (Node.js)...
- taskkill /F /IM node.exe >nul 2>&1
- if errorlevel 1 (
- echo No Node.js processes found
- ) else (
- echo Frontend service stopped
- )
- echo.
- REM Stop Python processes (backend)
- echo [2/3] Stopping backend service (Python)...
- taskkill /F /IM python.exe >nul 2>&1
- taskkill /F /IM pythonw.exe >nul 2>&1
- if errorlevel 1 (
- echo No Python processes found
- ) else (
- echo Backend service stopped
- )
- echo.
- REM Restore power settings (allow sleep/hibernate again)
- echo [3/5] Restoring power settings...
- REM Restore default sleep timeouts (15 minutes for AC, 5 minutes for DC)
- powercfg /change standby-timeout-ac 15 >nul 2>&1
- powercfg /change standby-timeout-dc 5 >nul 2>&1
- powercfg /change hibernate-timeout-ac 0 >nul 2>&1
- powercfg /change hibernate-timeout-dc 0 >nul 2>&1
- powercfg /change monitor-timeout-ac 10 >nul 2>&1
- powercfg /change monitor-timeout-dc 5 >nul 2>&1
- echo Power settings restored
- echo.
- REM Show taskbar (restore)
- echo [4/5] Restoring taskbar...
- if exist "%~dp0show-taskbar.ps1" (
- powershell -ExecutionPolicy Bypass -WindowStyle Hidden -File "%~dp0show-taskbar.ps1" 2>nul
- echo Taskbar restored
- ) else (
- echo Taskbar restore script not found (taskbar may still be hidden)
- )
- echo.
- REM Stop Chrome processes (optional)
- echo [5/5] Stopping Chrome (if running)...
- taskkill /F /IM chrome.exe >nul 2>&1
- if errorlevel 1 (
- echo No Chrome processes found
- ) else (
- echo Chrome stopped
- )
- echo.
- REM Stop Chrome processes (optional, uncomment if needed)
- REM echo Stopping Chrome...
- REM taskkill /F /IM chrome.exe >nul 2>&1
- echo ========================================
- echo All services stopped!
- echo ========================================
- echo.
- pause
|