Har fundet en løsning
<--KODE START-->
ConnString
="Driver={MySQL};SERVER=localhost;DATABASE=*****;UID=*****;PASSWORD=*****"
Set Conn = Server.CreateObject("ADODB.Connection")
Set RS = server.CreateObject("ADODB.recordset")
Conn.Open ConnString
Dim folderspec, fso, f, f1, fc, s, b
folderspec = Server.Mappath("/login/upload/test/")
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder(folderspec)
Set fc = f.Files
For Each f1 in fc
set rs = conn.execute("select * from opload where filnavn = '" &
f1.name & "'")
If rs.EOF or rs.BOF Then
s = s & f1.name
s = s & " <b>- er slettet</b>"
s = s & "<BR>"
Dim filespec, gso
filespec = Server.Mappath("/login/upload/test/" & f1.name & "")
Set gso = CreateObject("Scripting.FileSystemObject")
gso.DeleteFile(filespec)
Else
b = b & f1.name
b = b & "<BR>"
End If
Next
Response.Write "<u>Følgende filer <b><i>IKKE</i></b> blevet
slettet:</u><br>" & b
Response.Write "<br><br>Følgende filer blevet slettet:<br>" & s
<--KODE SLUT-->
--
MooreHojer