避免对运行目录的硬编码
This commit is contained in:
parent
6e09961069
commit
0262a413dd
@ -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\`
|
||||||
|
|
||||||
## 使用方法
|
## 使用方法
|
||||||
|
|
||||||
|
|||||||
@ -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%"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user