ciao...
con il seguente codice stampo a video sulla prima colonna i file che dovrebbero essere presenti in una cartella su server... e nella seconda colonna i file che sono realmente presenti sulla cartella sul server.
codice:<% strId = request.QueryString("id") Set conn = Server.CreateObject("ADODB.Connection") sql = "SELECT * FROM mobyle ORDER BY store ASC" Set rs = Server.CreateObject("ADODB.Recordset") rs.Open sql, MM_users_STRING, 3, 3 %> <html> <head> <title>Documento senza titolo</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="../blocconote/blocconote.css" rel="stylesheet" type="text/css"> </head> <body> <table align="center" border="1"> <tr><td>File da caricare</td><td>File su server</td></tr> <tr> <td valign="top"> <%do while not rs.EOF%> <%=rs("store")%>.txt <%rs.movenext loop%> </td> <td valign="top"> <% Dim objFso, objFolder, objFiles, strFolder, strFile strPath = "/dati/public/venduto/"&strID&"" Set objFso = Server.createObject("Scripting.FileSystemObject") Set objFolder = objFso.GetFolder(Server.MapPath(strPath)) Set objFiles = objFolder.Files For Each strFile in objFiles Response.Write(strFile.name & " ") Next Set objFso = Nothing Set objFolder = Nothing Set objFiles = Nothing %> </td> </tr> </table> </body> </html>
dovrei riuscire a verificare eventuali discrepanze, ovvero se i file sul server sono di meno o di più e quali sono i file... come posso fare??

Rispondi quotando