救命!!文件操作的问题,怎么实现文件的删除?

ykhxb 2003-08-18 04:41:09
scwj=request("scwj")
if scwj<>"" then
Set fso = CreateObject("Scripting.FileSystemObject")
Set f1 = fso.CreateTextFile(Server.MapPath("upfile/"&scwj),true)
f1.Close
set fso=nothing

id=request("id")
sql="delete from fileinfo where id="&id
conn.Execute sql
end if




<form method="POST" action="adm_del_bb.asp">
<input type="hidden" name="id" value="<%=rs("id")%>">
<td align="center"> <p align="center">
<input name="scwj" type="text" id="scwj" value="<%=rs("scwj")%>">
</td>
<td> <div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber1" width="1">
<tr>
<td width="1"> <input name="submit" type="submit" class="bt" id="submit" value="删除"></td>
</tr>
</table>
</center>
</div></td>
</form>
...全文
28 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
ykhxb 2003-08-18
  • 打赏
  • 举报
回复
那位大哥,顶一下!
ykhxb 2003-08-18
  • 打赏
  • 举报
回复
有人在吗,帮我顶一下!
ykhxb 2003-08-18
  • 打赏
  • 举报
回复
哪位大哥帮我看一下怎么才能实现能显示出来的文件进行删除啊?

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧