Board logo

标题: [文件操作] BAT怎么实现批量文件复制? [打印本页]

作者: nicevoice    时间: 2012-11-16 10:19     标题: BAT怎么实现批量文件复制?

F:\book 目录下有 boy girl animal plane .... 等等数百个子目录 ,这些子目录下还有子目录,boy girl animal plane等目录下都有index.html文件,现在想用一个index.php文件替换掉所有index.html,并且不影响各个目录下的子目录。

F:\BOOK\BOY\index.html-> F:\BOOK\BOY\index.php
F:\BOOK\GIRL\index.html-> F:\BOOK\GIRL\index.php
....

请老师们指点下了
作者: CrLf    时间: 2012-11-16 10:34

replace /s index.php f:\index.html
作者: nicevoice    时间: 2012-11-16 10:54

老大,这个貌似不行啊
作者: nicevoice    时间: 2012-11-16 10:56

是不是需要先删除index.html 然后拷贝一个index.php?
作者: BAT-VBS    时间: 2012-11-16 17:11

回复 3# nicevoice


    报错信息贴出来看看




欢迎光临 批处理之家 (http://www.bathome.net/) Powered by Discuz! 7.2