There is a tag in the Exchange called: DeleteDirectory great tag... But it will already delete all contents to include files and subdirectories.
>>> [EMAIL PROTECTED] 09/09/03 08:33AM >>> Hi I'm trying to write a cfc to crawl down in a directory structure, here are the steps if've to perform: - crawl down the structure beginning at the root directory (c:\storage) - if there are files get them and delete them - crawl up 1 level and delete directory - if there are files get them and delete them - crawl up 1 level and delete directory - ..... example of my tree structure: C:\Storage C:\Storage\scanning C:\Storage\scanning\september\file.txt C:\Storage\scanning\september\week1\day3\RSH\1stfile.txt C:\Storage\scanning\september\week1\day3\RSH\2ndfile.txt C:\Storage\scanning\oktober C:\Storage\scanning\oktober\dir\124568 C:\Storage\scanning\oktober\dir\124568\file.txt C:\Storage\fax .... C:\Storage\email .... Anybody have some ideas how to write a logic to crawl till the end of the structure and then crawl up again without forgetting a directory to check? thanks in advance cheers Tim ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm