24 lines
474 B
Batchfile
24 lines
474 B
Batchfile
@echo off
|
|
REM Version: 1.1
|
|
REM Backup all revit files for Exobim folder structure.
|
|
REM Usage information: see readme.txt
|
|
REM Created by Peter Gyetvai: gyetpet@gmail.com
|
|
|
|
cd %~dp0
|
|
cd ..
|
|
cd ..
|
|
if not exist ".\06 - Backup" mkdir "06 - Backup"
|
|
cd .\06 - Backup
|
|
|
|
for /f "delims=" %%a in ('wmic OS Get localdatetime ^| find "."') do set dt=%%a
|
|
set dt=%dt:~0,8%
|
|
md .\%dt%-rvtFiles
|
|
cd .\%dt%-rvtFiles
|
|
|
|
for /R "%~dp0" %%f in (*.rvt) do (
|
|
copy "%%f" "%cd%"
|
|
echo.
|
|
echo:%%f
|
|
)
|
|
|
|
cd %~dp0 |