18 lines
717 B
Batchfile
18 lines
717 B
Batchfile
@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=C:\ProgramData\Autodesk\Navisworks Manage 2026\plugins\NavisworksTransportPlugin"
|
|
|
|
if not exist "%TARGET_DIR%" mkdir "%TARGET_DIR%"
|
|
|
|
copy "bin\x64\Release\NavisworksTransportPlugin.dll" "%TARGET_DIR%\" >nul
|
|
if exist "bin\x64\Release\NavisworksTransportPlugin.name.txt" copy "bin\x64\Release\NavisworksTransportPlugin.name.txt" "%TARGET_DIR%\" >nul
|
|
if exist "bin\x64\Release\default_config.toml" copy "bin\x64\Release\default_config.toml" "%TARGET_DIR%\" >nul
|
|
|
|
echo Plugin deployed successfully! |