bat 拷贝文件并记录日志


@echo  on
set ymd=% date:~0,4%% date:~5,2%% date:~8,2%
set hour=% time:~0,2%
if /i %hour% lss 10 ( set hour=0%hour:~1,1%)
set ymd_t=%ymd%_%hour%% time:~3,2%% time:~6,2%

iisreset test1 
Xcopy \\RemoteFilePath\src\*.* E:\UPM_ReadyDeploy\ /s/e/r/y >> E:\GetDeployPackage/log/log-%ymd_t%.txt
Xcopy \\RemoteFilePath\src\MyProj.WebUI\bin\*.dll E:\LocalFile\MyProj.WebUI\bin\ /s/e/r/y
Xcopy \\RemoteFilePath\src\MyProj.WebUI\bin\*.pdb E:\LocalFile\MyProj.WebUI\bin\ /s/e/r/y
Xcopy \\RemoteFilePath\src\MyProj.WebService\bin\*.dll E:\LocalFile\MyProj.WebService\Release\  /s/e/r/y
Xcopy \\RemoteFilePath\src\MyProj.WebService\bin\*.pdb E:\LocalFile\MyProj.WebService\Release\  /s/e/r/y
iisreset test1


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM