<html>
<title>Filesystem objektet</title>
<head>
</head>
<body>
<%
' Variabler
Dim fso, folder, item, path
Set fso = CreateObject("Scripting.FileSystemObject")
' File objektet
path = "c:\\winnt\\" 'eller brug server.mappath("relativ-folder-her")
set folder = fso.GetFolder(path)
for each item in folder.Files
Response.Write("<a href=""" & path & item.name & """>" & item.Name & "</a><br>")
next
set folder = nothing
set item = nothing
set fso = nothing
%>
</body>
</html>
Prøv det her script.. skal ikke love noget dog
Indlæg senest redigeret d. 20.04.2006 10:06 af Bruger #782