NavisworksTransport/clean_database.bat

35 lines
927 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
echo ========================================
echo NavisworksTransport 数据库清理工具
echo ========================================
echo.
echo 此脚本将删除所有现有的路径数据库文件(.db文件
echo 下次启动插件时将自动创建新的数据库结构
echo.
echo 警告:此操作将删除所有历史路径数据!
echo.
pause
REM 设置数据库文件所在目录
set DB_DIR=C:\Users\Tellme\Documents\NavisworksTransport\分层输出
echo.
echo 正在清理数据库文件...
echo 目录: %DB_DIR%
echo.
REM 删除所有.db文件
if exist "%DB_DIR%\*.db" (
del /f /q "%DB_DIR%\*.db"
echo 已删除所有数据库文件
) else (
echo 未找到数据库文件
)
echo.
echo ========================================
echo 数据库清理完成!
echo 下次启动Navisworks插件时将自动创建新的数据库
echo ========================================
echo.
pause