@echo off title Animation Manager chcp 65001 >nul REM ================关闭旧的 server.js 进程======================== taskkill /F /IM node.exe >nul 2>&1 REM 等待一下确保进程完全关闭 timeout /t 1 /nobreak >nul 2>&1 REM ================启动 server.js(后台运行)======================== start /B node Server/server.js REM 等待服务器启动 timeout /t 2 /nobreak >nul 2>&1 REM ================打开浏览器访问 index.html======================== start http://localhost:3000/index.html?auto=true echo 服务已启动!浏览器将自动打开... echo 按 Ctrl+C 或关闭此窗口停止服务器 pause >nul REM 关闭 node 服务 taskkill /F /IM node.exe >nul 2>&1