La Référence Absolue sur les Technologies Microsoft




Déterminer les dossiers vides

Accueil > Script > windows_xp > Déterminer les dossiers vides

Déterminer les dossiers vides

Par Ismaël LIMBADA, LABORATOIRE SUPINFO DES TECHNOLOGIES MICROSOFT
Publiée le 03/08/2006 vers 10h.

On Error Resume Next

Set FSO = CreateObject("Scripting.FileSystemObject")
ShowSubFolders FSO.GetFolder("C:\")

Sub ShowSubFolders(Folder)
    For Each Subfolder in Folder.SubFolders
        If Subfolder.Size = 0 Then
            Wscript.Echo Subfolder.Path
        End If
        ShowSubFolders Subfolder
    Next
End Sub


Proposer un script

Notre avis :

Votre avis :

Réactions :
0

Votants :
2

Visites :
6747

1
2
3
4
5




Retrouvez ci-dessous les autres sections du Laboratoire Microsoft