# ASP Files Collection
* * Complete Folder Object Reference Manual](#)
* * *
The Files collection returns a collection of all files contained within a specified folder.
### Syntax
FolderObject.Files
### 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 & "
")
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 Manual](#)
Coll Files
π
2026-06-18 | π C#
YouTip