Looping through directories in MX

Posted on 2003-11-05
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
Question by:turbosig
  • 2
LVL 11

Accepted Solution

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

"cfdirectory is used to loop through directories"

Author Comment

ID: 9686411
Perfect, thanks.
LVL 11

Expert Comment

ID: 9686471


Featured Post

Save on storage to protect fatherhood memories

You're the dad who has everything. This Father's Day, make sure your family memories are protected. My Passport Ultra has automatic backup and password protection to keep your cherished photos and videos safe. With up to 3TB, you have plenty of room to hold the adventures ahead.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
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 add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

932 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

11 Experts available now in Live!

Get 1:1 Help Now