请教个删除图片的问题
我想把不在数据库文件中名称的图片删除掉,请问怎样删除啊我找了个删除的是等于的,我要不等于的,请问怎么改啊
代码如下:
<%
Dim rsdp
Dim rsdp_numRows
Set rsdp = Server.CreateObject("ADODB.Recordset")
rsdp.ActiveConnection = MM_ggsj1_STRING
rsdp.Source = "SELECT * FROM dbo.dianpu"
rsdp.CursorType = 0
rsdp.CursorLocation = 2
rsdp.LockType = 1
rsdp.Open()
rsdp_numRows = 0
%>
<%
set fso=Server.CreateObject("scripting.filesystemobject")
myFile<>Server.MapPath("../6531tupianjia/dianpu/"& rsdp("tupian") &"")
if fso.FileExists(myFile) then
fso.DeleteFile myFile
end if
set fso=Nothing
%>