Baleric
10-04-2005, 07:02 AM
hey i got a dir listing and i would like to make it so wen u clikc the file it loads it in the browser eg.
Image.jpg loads to www....../image.jpg
here is my code im using, i got it from w3scools
<%
dim fs,fo,x
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("D:\BalericFINAL\Images")
for each x in fo.files
'Print the name of all files in the test folder
Response.write(x.Name & "<br /> " )
next
set fo=nothing
set fs=nothing
%>
thanx -baleric
Image.jpg loads to www....../image.jpg
here is my code im using, i got it from w3scools
<%
dim fs,fo,x
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("D:\BalericFINAL\Images")
for each x in fo.files
'Print the name of all files in the test folder
Response.write(x.Name & "<br /> " )
next
set fo=nothing
set fs=nothing
%>
thanx -baleric