using 7 zip to compress files listed in backupfilelist.txt
7z a compressed_%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%.7z @backupfilelist.txt
或是可以加上時間
setlocal
set hh=%time:~0,2%
if "%time:~0,1%"==" " set hh=0%hh:~1,1%
set yyyymmdd_hhmm=%date:~0,4%%date:~5,2%%date:~8,2%_%hh%%time:~3,2%
7z a compressed_%yyyymmdd_hhmm%.7z @backupfilelist.txt
星期三, 9月 23, 2009
訂閱:
文章 (Atom)