7 Replies Latest reply on Jan 17, 2017 7:27 AM by WolfShade

    CFDIRECTORY - Count files in each directory

    weezerboy Level 1

      I want to count the number of files in each and every directory in my website. I don't want to list the files but just get a count of all files in each directory.

      Not a sub directory count but a file count in each directory

      For example using my C:\Windows\ directory as the directory where the files in each and every directory are to be counted

      Like this

      Directory NameFile CountDate Last File Modified
      C:\Windows\ADFS\ar112-12-2016
      C:\Windows\ADFS\bg212-12-2016
      ...................
      C:\Windows\WinSxS8112-14-2016
      C:\Windows\WinSxS\x86_microsoft-windows-deviceaccess.resources_31bf3856ad364e35_6.3.9600.1 6384_en-us_21effc1389c6f3e1112-14-2016

       

      I need the count of the files in each directory. Every row in the table would be the next directory as you drill down.