Management自動備份

Post date: 2012/7/17 上午 02:02:25

echo off

echo Management自動備份~~~

FOR /F "tokens=1-12 delims=/ " %%a IN ("%date%") DO (SET _date_=%%a%%b%%c)

7za a -t7z ".\ManagementBackup\ManagementBackup-%_date_%" -bd -p1234 -r C:\c++\phancloud\Management_3.0\Management\Configuation.h C:\c++\phancloud\Management_3.0\Management\GroupUser.h C:\c++\phancloud\Management_3.0\Management\IDNumber.h C:\c++\phancloud\Management_3.0\Management\Management.h C:\c++\phancloud\Management_3.0\Management\Program.h C:\c++\phancloud\Management_3.0\Management\stdafx.h C:\c++\phancloud\Management_3.0\Management\targetver.h C:\c++\phancloud\Management_3.0\Management\Configuation.cpp C:\c++\phancloud\Management_3.0\Management\GroupUser.cpp C:\c++\phancloud\Management_3.0\Management\Management.cpp C:\c++\phancloud\Management_3.0\Management\Program.cpp C:\c++\phancloud\Management_3.0\Management\stdafx.cpp

echo 自動備份儲存為:.\ManagementBackup\ManagementBackup-%_date_%.7z!

pause