|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Scripting.FileSystemObject
Can anybody tell me how to access the names of files in a given folder using the Scripting.FileSystemObject?
I have a page that allows me to upload files to a folder called /uploads/. I would then like to populate a dropdown list with the names of all the files in that /uploads/ directory. Any help is greatly appreciated. Travis Cable travis@bridgewebdesign.com |
|
#2
|
|||
|
|||
|
<%
Dim fs, fldr, fil set fs = server.createobject("Scripting.FilesystemObject") set fldr = fs.GetFolder("pathToFolder") for each fil in folder response.write fil.name next %> Untested, you'll have to change the response.write to output the appropriate html for a dropdown box. http://msdn.microsoft.com/library/e...ystemObject.asp |
|
#3
|
|||
|
|||
|
you can try my coding here, as i just post it up recently. you can just add in the dropdown code.
http://forums.devshed.com/t94684/s.html
__________________
Hope this helps. Mike Royal Selangor Pewter "I have not failed. I've just found 10,000 ways that won't work." - Thomas Alva Edison (1847-1931) |
|
#4
|
|||
|
|||
|
Working Great
Thank you both very much, it is working out great.
Travis Cable |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Scripting.FileSystemObject |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|