Solved

Looping through directories in MX

Posted on 2003-11-05
3
181 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 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help Fix A 403 error 13 124
Change local server setting in php 6 116
Customising IE behaviour on certain pages 2 95
ReadyAPI 1.9.0 2 37
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

736 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