您的位置:首页 > 其它

Mark 脚本-20170310-bat 复制指定文件夹下所有内容到指定位置

2017-03-10 17:26 405 查看

Requirement

复制指定文件夹下所有内容到指定位置

Code

@echo off
@title copy directory to destination location

set root=C:\
set "directory=%date:~0,4%-%date:~5,2%-%date:~8,2%"
set "document=%root%%directory%"
if not exist %document%    md %document%
xcopy /s/e/y "C:\haha" "%document%\"
exit


Reference

将当前文件夹及文件夹下文件复制到指定位置bat

Xcopy命令参数使用介绍

批处理判断文件夹是否存在
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  bat
相关文章推荐