Piu' o meno ... cosi' dovrebbe andare.
Nella Sleep il valore 1000 indica 1 secondo ...
codice:
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Sub Command1_Click()
Dim fso As New FileSystemObject
Dim f As Folder
Set f = fso.GetFolder("c:\")
Call ScanDir(f)
End Sub
Public Sub ScanDir(fol As Folder)
Dim fl As Folder
Dim fi As File
List1.Clear
For Each fi In fol.Files
List1.AddItem fi.Path
Sleep (1000)
DoEvents
Next
For Each fl In fol.SubFolders
Call ScanDir(fl)
Next
End Sub
Pero' fai attenzione perche' la scansione di tutto un disco e' molto lunga e se introduci anche un ritardo, non finisce piu' ...