Save a tree each day using Windows :)
Assume files and folders in drive F
Batch.tree.f.bat Put directory tree into new file each day
@echo off for /f "tokens=1-3 delims=- " %%g in ('date /t') do ( set yy=%%g set mm=%%h set dd=%%i ) tree /a f:\ > "f:\Daily Tree Backup\%yy%-%mm%-%dd%.tree.f.txt" if exist "f:\Daily Tree Backup\%yy%-%mm%-%dd%.tree.f.txt" ( rd /S /Q "f:\Daily Tree Backup\%yy%-%mm%-%dd%.tree.f.txt" )
Batch.tree.f.bat Put directory tree into new file each day
@echo off for /f "tokens=1-3 delims=- " %%g in ('date /t') do ( set yy=%%g set mm=%%h set dd=%%i ) tree /a f:\ > "f:\Daily Tree Backup\%yy%-%mm%-%dd%.tree.f.txt" if exist "f:\Daily Tree Backup\%yy%-%mm%-%dd%.tree.f.txt" ( rd /S /Q "f:\Daily Tree Backup\%yy%-%mm%-%dd%.tree.f.txt" )
0 Comments:
Skicka en kommentar
<< Home