<%
Dim FSO
Dim strFile
Dim strFiles
Set FSO = CreateObject("s cripting.filesy stemobject")
'Get all files in a specific folder
Set strFiles = FSO.GetFolder(S erver.MapPath(" ./")) ' ./ is the current
folder
'Uncomment below line and replace filename/path with the file you want,
then comment out the above line, and
'the For Next loop.....
' Set strFile = FSO.GetFile(Ser ver.MapPath("/default.asp"))
For Each strFile In strFiles
Response.Write strFile.Name
Next
Set FSO = Nothing
Set strFile = Nothing
Set strFiles = Nothing
%>
--
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
jandt <an*******@disc ussions.microso ft.com> wrote in message
news:00******** *************** *****@phx.gbl.. .
I know that you can retrieve data from a form using
Request.Form("n ame"), but how do you retrieve a file?