Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · ASP.NET Newsletter Application · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : ASP : ASP 3.0 : filesysytem objects Signup · Login
Author Thread
filesysytem objects
Posted in tutorial: Working with Drives, Folders and Files in ASP
·  bharani
User
Joined: 6 Dec 2002
Total Posts: 1

filesysytem objects

Posted: 6 Dec 2002
i have gone through the article of filesystem objects
in that we can get the subfolders in a folder by using a for each loop . is there any possibility of getting the files in that particular subfolder
bharani

bharani
·  Faisal Khan
AdminAdminAdminAdmin
Joined: 24 Sep 2002
Total Posts: 595
Re: filesysytem objects
Posted: 6 Dec 2002
Use FileSystemObject's GetFoler() method like this:


<%
Dim fso
' Create FileSystemObject here'

Dim folder
Set folder = fso.GetFolder("C:\Somefoler\")

Dim files
Set files = folder.Files

' Use a For..Each loop here
%>

This way you'll get a collection of files in a specific folder.

Faisal Khan.
Stardeveloper.com
Read Blog | Follow on Facebook, Twitter
Want to leave a comment? Login or Register for free!

Users Who Have Visited This Thread In Last 24 Hours
3 Visitors

Login to post a comment or start a new thread
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2010 Stardeveloper.com, All Rights Reserved.