Total number of files in a folder

Discussion in 'C#' started by US_MAN, Feb 13, 2008.

  1. #1
    just want to print total number of files using ASP.NET but cant get it... coz I havnt so much experties in.NET :-s
    im using this code, it prints all file names
    plz hlp....
     
    US_MAN, Feb 13, 2008 IP
  2. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    
    Dim thedirectory As New IO.DirectoryInfo(Server.MapPath("~/images/"))
    Dim count As Integer = thedirectory.GetFiles.Length
    
    Code (ASP.Net):
    As requested
     
    AstarothSolutions, Feb 13, 2008 IP
  3. US_MAN

    US_MAN Peon

    Messages:
    26
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thnx


    ....
     
    US_MAN, Feb 13, 2008 IP