- Deleted obsolete files including test scripts and configuration files to streamline the project. - Introduced new modules for handling Douyin functionalities, including core operations, logging, and GUI components. - Updated import paths to reflect the new module structure, enhancing code organization and maintainability. - Added configuration files and documentation to support the new structure and improve user guidance.
23 lines
938 B
Batchfile
23 lines
938 B
Batchfile
@echo off
|
|
REM 保存原始代码页
|
|
for /f "tokens=2 delims=:" %%a in ('chcp') do set _ORIG_CP=%%a
|
|
set _ORIG_CP=%_ORIG_CP: =%
|
|
REM 设置为UTF-8编码
|
|
chcp 65001 >nul
|
|
echo ========================================
|
|
echo 停止抖音挂机 Web GUI 服务
|
|
echo ========================================
|
|
echo.
|
|
|
|
echo 正在查找Web GUI进程...
|
|
|
|
REM 查找并停止web_gui.py进程
|
|
powershell -NoProfile -Command "$ps = Get-CimInstance Win32_Process | Where-Object { ($_.CommandLine -like '*web_gui.py*') -and ($_.Name -like 'python*') }; if ($ps) { $ps | ForEach-Object { try { $pid = $_.ProcessId; Stop-Process -Id $pid -Force -ErrorAction SilentlyContinue; Write-Host \"[已停止] PID=$pid\" } catch { Write-Host \"[停止失败] PID=$($_.ProcessId): $_\" } } } else { Write-Host \"[未找到] 没有运行中的Web GUI进程\" }"
|
|
|
|
echo.
|
|
echo 操作完成!
|
|
echo.
|
|
pause
|
|
REM 恢复原始代码页
|
|
if defined _ORIG_CP chcp %_ORIG_CP% >nul
|