避免对运行目录的硬编码

This commit is contained in:
tian 2026-02-20 22:33:00 +08:00
parent 6e09961069
commit 0262a413dd
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ Navisworks Manage 2026 物流路径规划与运输冲突检测插件。
./deploy-plugin.bat ./deploy-plugin.bat
``` ```
插件将自动安装到:`C:\ProgramData\Autodesk\Navisworks Manage 2026\plugins\TransportPlugin\` 插件将自动安装到:`%PROGRAMDATA%\Autodesk\Navisworks Manage 2026\plugins\TransportPlugin\`
## 使用方法 ## 使用方法

View File

@ -7,7 +7,7 @@ if %errorlevel% == 0 (
timeout /t 1 /nobreak >nul timeout /t 1 /nobreak >nul
) )
set "TARGET_DIR=C:\ProgramData\Autodesk\Navisworks Manage 2026\plugins\TransportPlugin" set "TARGET_DIR=%PROGRAMDATA%\Autodesk\Navisworks Manage 2026\plugins\TransportPlugin"
if not exist "%TARGET_DIR%" mkdir "%TARGET_DIR%" if not exist "%TARGET_DIR%" mkdir "%TARGET_DIR%"