假设该字段的值储存在strWord字段中,以下是一个设计思路。 dim strPicPath dim arrWord dim i arrWord = split(strWord, "[IMG]") for i = 1 to ubound(arrWord) strPicPath = server.mappath(split(arrWord(i),"[/IMG]")(0)) '使用fso删除 del strPicPath next Function Del(strSysPath) On Error Resume Next Dim objFile Set objFile = Server.Createobject("Scripting.FileSystemObject") If objFile.FileExists(strSysPath) Then objFile.DeleteFile strSysPath End If Set objFile = Nothing If Err.Number = 0 Then Del = True Else Del = False End If On Error Goto 0 End Function