Link to home
Start Free TrialLog in
Avatar of turbosig
turbosig

asked on

Looping through directories in MX

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
****************************************
ASKER CERTIFIED SOLUTION
Avatar of hart
hart
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of turbosig
turbosig

ASKER

Perfect, thanks.
:-)

Regards
Hart