标题:
[求助]覆盖同名文件
[打印本页]
作者:
zhangxdong4
时间:
2007-10-25 08:30
标题:
[求助]覆盖同名文件
A文件夹下有8.txt, 55.txt等4个文件。
B文件夹下有1.txt ,2.txt...........500.txt
如何做一个批处理用B文件夹文件覆盖A文件夹的同名文件?
A文件夹没有的文件不要copy过来
谢谢大家!!!
A文件夹没有的文件不要copy过来
[
Last edited by zhangxdong4 on 2007-10-25 at 09:14 AM
]
作者:
fastslz
时间:
2007-10-25 08:59
xcopy /h /r /y b\*.txt a\
作者:
zhangxdong4
时间:
2007-10-25 09:15
Quote:
Originally posted by
fastslz
at 2007-10-25 08:59 AM:
xcopy /h /r /y b\*.txt a\
A文件夹没有的文件不要copy过来
作者:
fastslz
时间:
2007-10-25 09:37
@echo off
for /f "delims=" %%i in ('dir /a-d /b a\*') do xcopy /h /r /y b\%%i a\%%i
作者:
zhangxdong4
时间:
2007-10-25 10:50
谢谢
作者:
moniuming
时间:
2008-1-21 15:09
真巧妙,学习了
作者:
bigfaint
时间:
2008-1-21 16:48
好多东西要学啊
欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/)
Powered by Discuz! 2.5