标签:
@echo off set sourcePath=D:\DOAutomationTest\automation_do_ma_soapui\TestResult\PA set targetPath=\\szpc2015801\AutomationReport\PA set directoryName=%date:~6,-4%-%date:~0,2%-%date:~3,2%-%time:~0,2%-%time:~3,2% echo %directoryName% md %targetPath%\%directoryName% xcopy /d %sourcePath% %targetPath%\%directoryName% PAUSE
文件夹名称 :2015-07-16-11-26
[BAT] 以当前时间为名创建文件夹,将本地文件夹里的文件拷贝到远程共享目录
标签:
原文地址:http://www.cnblogs.com/MasterMonkInTemple/p/4650735.html