[vbnet] [files] compter le nombre de fichiers d\'un répertoire


/ Published in: VB.NET
Save to your folder(s)

count the number of files in a directory


Copy this code and paste it in your HTML
  1. Function ListeFichiers(ByVal Chemin As String) As Integer
  2. Return Directory.EnumerateFiles(Chemin, "*", SearchOption.AllDirectories).Count()
  3. End Function

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.