Posted By

martinbrait on 08/23/19


count files

Versions (?)

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

 / Published in: VB.NET

count the number of files in a directory

  1. Function ListeFichiers(ByVal Chemin As String) As Integer
  2. Return Directory.EnumerateFiles(Chemin, "*", SearchOption.AllDirectories).Count()
  3. End Function

Report this snippet  

You need to login to post a comment.