@echo off :: 如果 Navisworks 正在运行,关闭它以释放 DLL 锁定 taskkill /F /IM Roamer.exe 2>nul if %errorlevel% == 0 ( echo Navisworks process terminated. timeout /t 1 /nobreak >nul ) set "TARGET_DIR=%PROGRAMDATA%\Autodesk\Navisworks Manage 2026\plugins\TransportPlugin" if not exist "%TARGET_DIR%" mkdir "%TARGET_DIR%" copy "bin\x64\Release\TransportPlugin.dll" "%TARGET_DIR%\" >nul :: 复制resources文件夹(包含chart.js等本地资源) if exist "bin\x64\Release\resources" ( if not exist "%TARGET_DIR%\resources" mkdir "%TARGET_DIR%\resources" copy "bin\x64\Release\resources\*" "%TARGET_DIR%\resources\" >nul echo Resources folder deployed. ) echo Plugin deployed successfully!