比如说我有个文件
AA.TXT
由于总是需要手动复制文件到每个磁盘根目录这样效率低也太麻烦,所以我想用批处理的形式代替手工操作,
各位有办法么帮我解决一下问题
谢谢各位
[ Last edited by 3095456 on 2007-1-7 at 02:48 PM ]
作者: lxmxn 时间: 2007-1-8 04:41
@echo off
for %%i in (c d e f) do @copy aa.txt %%i:\
作者: jmz573515 时间: 2007-1-8 07:47
set fso=createobject("scripting.filesystemobject")
set disk=fso.drives
for each ds in disk
if ds.drivetype=2 then fso.copyfile "aa.txt",ds&"\",true
next
msgbox "操作完成!",4096,"提示"
作者: 3095456 时间: 2007-1-9 12:34
非常感谢
作者: hellochina 时间: 2007-1-10 05:06
三楼写得是什么?
作者: lxmxn 时间: 2007-1-10 05:40
Originally posted by hellochina at 2007-1-9 16:06:
三楼写得是什么?