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


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

count the number of folders in a directory


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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.