最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

XCOPY的高級使用:指定日期并且用EXCLUDE排除指定文件

 更新時間:2014年04月12日 23:20:23   作者:  
這篇文章主要介紹了通過dos下的XCOPY命令實現(xiàn)復制指定日期并且用EXCLUDE排除指定文件的代碼,需要的朋友可以參考下
1.cmd到xcopyTime.bat所在目錄,執(zhí)行命令xcopyTime sourceFolder DestinationFolder dateTime
2.EXCLUDE.txt是排除的對象,不復制其中羅列的文件或文件夾

例子:
F:\bat>xcopyTime E:\workspace F:\website\ 06-30-2010

EXCLUDE.txt內(nèi)容,在下面的線里面

------------------------------
.classpath
.class
.log
------------------------------



復制代碼 代碼如下:

@echo off
rem xcopy2.BAT transfers all files in all subdirectories of
rem the source drive or directory (%1) to the destination
rem drive or directory (%2)
rem lastModifyTime (%3)
xcopy %1 %2 /s /d:%3 /exclude:EXCLUDE.txt /y
if errorlevel 4 goto lowmemory
if errorlevel 2 goto abort
if errorlevel 0 goto exit
:lowmemory
echo Insufficient memory to copy files or
echo invalid drive or command-line syntax.
goto exit
:abort
echo You pressed CTRL+C to end the copy operation.
goto exit
:exit
==================================================================
.classpath
.class
.log

相關文章

最新評論

霍林郭勒市| 江北区| 滨海县| 阿鲁科尔沁旗| 建平县| 双城市| 定边县| 禄丰县| 翁牛特旗| 绥阳县| 阳西县| 德令哈市| 海盐县| 仪陇县| 新闻| 桐乡市| 大足县| 蕉岭县| 铜川市| 秀山| 宁夏| 淮阳县| 云霄县| 三门峡市| 恩平市| 安阳县| 赣州市| 邓州市| 株洲市| 吉水县| 博客| 广丰县| 庆城县| 砀山县| 丘北县| 万源市| 汤原县| 攀枝花市| 获嘉县| 平凉市| 竹溪县|