文件删除的问题
set rscyc=server.createobject( "adodb.recordset ")
sql= "select * from BM_yuangong where Person_id= ' "&request( "Person_id ")& " ' "
rscyc.open sql,conn,3,1
'upload_dir=server.MapPath( "mimage ")
set fso=CreateObject( "Scripting.FileSystemObject ")
fso.deletefile(rscyc( "Person_zhaopian "))
rscyc.delete
我这样写 请问有什么错吗 上传成功 删除的时候 说找不到文件 大家帮我看看 谢谢
------解决方案--------------------rscyc( "Person_zhaopian ")有取到值吗?
路径是否正确?
------解决方案--------------------fso.deletefile(rscyc( "Person_zhaopian ")) '肯定不是真实路径.加server.mappath转换一下.
------解决方案--------------------server.mappath啊.....