effettivamente ragionando:
codice:
<%
Dim sc, cn, rs, id
sc = ""
sc = sc & "driver={Microsoft Access Driver (*.mdb)};dbq="
sc = sc & Server.MapPath("../mdb-database/database")
Set cn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
cn.Open sc
id = Request.QueryString("id")
rs.Open "SELECT * FROM news WHERE id LIKE " + id, cn, 1
%>
codice:
<%
Dim objFso, objFolder, objFiles, strFolder, strFile
strPath = Rs("cartellaftp")
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 &" - " & strFile.Size & "")
Next
Set objFso = Nothing
Set objFolder = Nothing
Set objFiles = Nothing
%>
Ma viene restituito l'errore:
Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
ODBC driver does not support the requested properties.
riferito alla linea 20 ovvero:
rs.Open "SELECT * FROM news WHERE id LIKE " + id, cn, 1