ACTIVE SERVER PAGE > ±Û »èÁ¦Çϱâ
µî·ÏÀÏ : 2017-07-03 20:15
Á¶È¸¼ö : 52,609
°Ô½ÃÆÇÀÇ ±Û »èÁ¦¿Í º°¹Ý Â÷ÀÌ°¡ ¾ø´Ù. ´Ü, ÆÄÀϸíÀ» ÃëÇÏ¿©, ÆÄÀÏÀÌ Á¸ÀçÇßÀ»½Ã¿£ FSO ÄÄÆ÷³ÍÆ®¸¦ »ç¿ëÇØ »èÁ¦ÇØ ÁÖ¾ú´Ù.
<%
tname=request("tname")
dbname=request("dbname")
Set db = Server.CreateObject("ADODB.Connection")
db.Open("dsn=xxx;uid=sa;pwd=;database="&dbname)
SQL = "select * from " & tname & " where num = " & request("num")
Set rs = Server.CreateObject("ADODB.RecordSet")
rs.Open SQL,db
filename=trim(rs("file_name"))
if filename<>"¾øÀ½" then
filename="c:\inetpub\wwwroot\download\"&filename
set fs=createobject("scripting.filesystemobject")
fs.deletefile(filename)
end if
SQL1 = " DELETE FROM databank where num = " & request("num")
db.execute SQL1
%>