脚本
@echo off
set hour=%time:~0,2%
if “%time:~0,1%”==" " set hour=0%time:~1,1%
set now=%Date:0,4%-%Date:5,2%-%Date:~8,2%
@echo %now%
set src_files1=D:\cardImage
set des_files1=D:\新建文件夹
set src_files2=D:\databasebackup
set des_files2=D:\新建文件夹
@echo src_files1 backup
xcopy %src_files1% %des_files1% /e/I/Y
@echo src_files2 backup
xcopy %src_files2% %des_files2% /e/I/Y
@echo on