@echo off echo ======================================== echo 网络拓扑发现系统 echo ======================================== echo. REM 检查可执行文件是否存在 if not exist network-topology.exe ( echo 错误: network-topology.exe 不存在! echo 请先运行 build.bat 编译程序 pause exit /b 1 ) REM 检查配置文件 if not exist config.json ( echo 提示: config.json 不存在,将使用默认配置 echo 正在创建默认配置文件... echo {> config.json echo "scan_ranges": [],>> config.json echo "devices": [],>> config.json echo "ssh": {>> config.json echo "timeout": 10,>> config.json echo "max_retries": 3,>> config.json echo "port": 22>> config.json echo },>> config.json echo "web": {>> config.json echo "port": 8080,>> config.json echo "host": "0.0.0.0">> config.json echo },>> config.json echo "scanner": {>> config.json echo "concurrency": 10,>> config.json echo "timeout": 2>> config.json echo }>> config.json echo }>> config.json echo. ) echo 正在启动网络拓扑发现系统... echo. echo ======================================== echo 访问地址: http://localhost:8080 echo 按 Ctrl+C 停止服务 echo ======================================== echo. network-topology.exe config.json pause