Posted By

martinbrait on 08/23/19


count directory

Versions (?)

[vbnet] [directory] compter le nombre de dossiers d'un répertoire

 / Published in: VB.NET

count the number of folders in a directory

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

Report this snippet  

You need to login to post a comment.