huanxiong0101要我写的对文件的操作
<%'建立文件对像
set myfile=server.CreateObject("scripting.fileobjectsystem")
'复制文件
myfile.copyfile “c:\new.txt“,“c:\old.txt“ '绝对路径
myfile.copyfile server.mappath(“new.txt“),server.mappath(“old.txt“) '相对路径
'移动文件
myfile.movefile “c:\new.txt“,“c:\old.txt“,[overwrite]
'删除文件
myfile.deletefile “c:\new.txt“
if myfile.fileexists(“filepath&filename“) then
response.write “exists“
response.end
else
responsewrite “not exists“
response.end
end if
%>