[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Looping through directories in MX

Posted on 2003-11-05
3
Medium Priority
?
194 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
hart earned 400 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
Geo-targeting is the practice of distributing content based on a person’s location, as best as you can determine it. Let’s look at some ways you could successfully use this tactic. The following tips and case studies could lead to meaningful results.
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…
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…
Suggested Courses

649 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