Set name=%date:~0,4%-%date:~5,2%-%date:~8,2% Set dd=%date:~0,10% md G:\部署备份\%name% xcopy G:\部署备份\templet G:\部署备份\%name%\ /E /Y