国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > BAT > 正文

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

2020-06-09 13:56:45
字體:
來源:轉載
供稿:網友
1.cmd到xcopyTime.bat所在目錄,執行命令xcopyTime sourceFolder DestinationFolder dateTime
2.EXCLUDE.txt是排除的對象,不復制其中羅列的文件或文件夾

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

EXCLUDE.txt內容,在下面的線里面

------------------------------
.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
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 集贤县| 新泰市| 肇源县| 长沙县| 民丰县| 额济纳旗| 搜索| 长岭县| 通榆县| 霞浦县| 六枝特区| 丽水市| 海口市| 屏东县| 武汉市| 凯里市| 成安县| 琼海市| 衡水市| 柏乡县| 都匀市| 吉木乃县| 武城县| 民县| 区。| 建阳市| 高雄县| 五家渠市| 茌平县| 中牟县| 庆元县| 金山区| 开原市| 澜沧| 锦州市| 南平市| 安丘市| 忻城县| 澄城县| 阳泉市| 宁蒗|