Solved

Looping through directories in MX

Posted on 2003-11-05
3
143 Views
Last Modified: 2013-12-24
OK, I am new to coldfusion, so still learningthe tags, etc.

What I want to do is mimic the FileSytem object of .asp.  Basicall convert the following code into coldfusion tags / functions.

****************************************
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(strPathMovies)

    For Each objSubFolder in objFolder.SubFolders
        For Each objFile in objSubFolder.Files
            Response.write objFile.name
        Next
    Next
****************************************
0
Comment
Question by:turbosig
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
hart earned 100 total points
ID: 9686397
go to this link and u will get all the help u need

http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-a20.htm#wp1097918

"cfdirectory is used to loop through directories"
0
 
LVL 2

Author Comment

by:turbosig
ID: 9686411
Perfect, thanks.
0
 
LVL 11

Expert Comment

by:hart
ID: 9686471
:-)

Regards
Hart
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php :…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now