- @echo off
- set CurPath=%~dp0
- cd..
- echo %cd%
- set "SaveProPath=CT"
- ::-------------------------------------------------------------------------------
- ::创建日期
- set curdate=%date%
- set d1=%curdate:~0,4%
- set d2=%curdate:~5,2%
- set d3=%curdate:~8,2%
- set curdate=%d1%-%d2%
- set curtime=%time%
- set /a newtime=%curtime::=%
- set /a newtime=%newtime%+1000000
- set SaveTime=%d1%%d2%%d3%_%newtime:~1,6%
-
- set "DestPath=C:\Program Files\Radar\CT\Config"
- ::创建备份包名称
- set "%cd%\备份"
- set "%cd%\备份\%SaveProPath%\%curdate%_%SaveTime%"
- md "%cd%\备份\%SaveProPath%\%curdate%_%SaveTime%"
-
- ::拷贝config
- xcopy "%cd%\Config" "%cd%" /S /E /K /Y
-
- ::WebAir打包
-
- "%cd%\7za.exe" a -tzip "%cd%.zip" "%cd%\"
- pause
- echo
复制代码
|