ASP Files Collection
Complete Folder Object Reference
The Files collection returns a collection of all the files in a specified
folder.
Syntax
Example
<%
dim fs,fo,x
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\test\")
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
%>
|
Output:
test_adv.txt
guestbook.txt
links.txt
links2.txt
textads.txt
textfile.txt
|
Complete Folder Object Reference
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|