set objfile = server.createobject("scripting.filesystemobject") '定义一个服务器组件(写入目标文件)
set outt = objfile.createtextfile(file_to,TRUE,FALSE)
outt.write(content) '写入数据
outt.close
else '否则直接复制文件
Set fso = CreateObject("Scripting.FileSystemObject")
fso.CopyFile file_from, file_to
End If
Next
End Sub