bat-Windows的文件夹备份

REM program:用于HTS的Windows机器备份
REM author:sundz	version:V1.0  20220615
@ECHO OFF
title HTS备份
REM YYYYMMDD
SET data_floder=d:\backup\%date:~0,4%%date:~5,2%%date:~8,2%
REM HHMMSS
SET time_stamp=%time:~0,2%%time:~3,2%%time:~6,2%
IF NOT EXIST %data_floder% MD %data_floder%
CD %data_floder%
REM 备份aboss5
MD aboss5
XCOPY d:\HTS\aboss5\bin %data_floder%\aboss5\bin /s/e/i/y
XCOPY d:\HTS\aboss5\cfg %data_floder%\aboss5\cfg /s/e/i/y
XCOPY d:\HTS\aboss5\svc %data_floder%\aboss5\svc /s/e/i/y
REM 备份Qtmanage
MD QTmanage
XCOPY d:\HTS\QTmanage\bin %data_floder%\QTmanage\bin /s/e/i/y
XCOPY d:\HTS\QTmanage\svc %data_floder%\QTmanage\svc /s/e/i/y
REM Aclient
MD Aclient
XCOPY d:\HTS\Aclient\bin %data_floder%\Aclient\bin /s/e/i/y
XCOPY d:\HTS\Aclient\module %data_floder%\Aclient\module /s/e/i/y
REM over
ECHO 备份结束
PAUSE
posted @ 2022-07-27 12:11  孙犯困  阅读(183)  评论(0编辑  收藏  举报