欢迎访问:常州市武进区嘉泽中心小学网站 !今天是:
栏目列表
您现在的位置是:首页>>教师>>计算机技术>>网站制作技术>>文章内容
huanxiong0101要我写的对文件的操作
发布时间:2008-11-20   点击:   来源:本站原创   录入者:佚名
 

<%'建立文件对像
   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

%>


附件:
    关闭窗口
    打印文档
    账号登录
    保持登录 忘记密码?
    账号与武进教师培训平台同步