@echo off 操作执行中
@echo off
net use z: \\192.168.0.48\software\testData2014 "123456" /USER:administrator
set wd=%date:~0,4%%date:~5,2%%date:~8,2%
set str=erpdb1%wd%0800.bak
set strdy=dydb_n%wd%0800.bak
set filedy=i:\dydb_n\%strdy%

set strwj=wjdb1%wd%0800.bak
set filewj=i:\wjdb1\%strwj%

set strfz=fzdb_n%wd%0800.bak
set filefz=i:\fzdb_n\%strfz%

set strjob=Jobdb5%wd%0800.bak
set filejob=i:\Jobdb5\%strjob%   

del z:\*.bak  
@echo on

echo --------  执行时间: %date% %time% --------     >> z:\log.txt
echo 复制文件开始 >> z:\log.txt
copy I:\erpdb1\%str%  z:\erpdb1.bak       >> z:\log.txt
copy  %filedy% z:\dydb_n.bak       >> z:\log.txt
copy  %filewj% z:\wjdb1.bak        >> z:\log.txt
copy  %filefz% z:\fzdb_n.bak       >> z:\log.txt
copy  %filejob% z:\Jobdb5.bak      >> z:\log.txt
echo 复制文件结束 >> z:\log.txt
echo       ---- %time%    >> z:\log.txt