Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. count of file in a directory

count of file in a directory

Scheduled Pinned Locked Moved Visual Basic
questioncsharphelptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aphei
    wrote on last edited by
    #1

    hi all, how to know that how many file and what is the name of file in the directory that our specified in vb .net 2005?? anyone can help me??

    M 1 Reply Last reply
    0
    • A aphei

      hi all, how to know that how many file and what is the name of file in the directory that our specified in vb .net 2005?? anyone can help me??

      M Offline
      M Offline
      Marek Grzenkowicz
      wrote on last edited by
      #2

      My.Computer.FileSystem.GetFiles("c:\temp\").Count My.Computer.FileSystem.GetFiles("c:\temp\") returns a collection of names of the files within specified directory.

      A 1 Reply Last reply
      0
      • M Marek Grzenkowicz

        My.Computer.FileSystem.GetFiles("c:\temp\").Count My.Computer.FileSystem.GetFiles("c:\temp\") returns a collection of names of the files within specified directory.

        A Offline
        A Offline
        aphei
        wrote on last edited by
        #3

        thanks.. your code is very help me...

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups