If FolderBrowser.ShowDialog = Windows.Forms.DialogResult.OK Then 'le path du directory dirsin = FolderBrowser.SelectedPath end if
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionPrivate Sub Command1_Click() Dim fso As New FileSystemObject Dim fld As Folder Dim fil As File Set fld = fso.GetFolder(Dir1.Path) For Each fil In fld.Files 'fil contient toutes les info sur le fichier ' par ex 'fil.DateCreated ' fil.DateLastAccessed 'fil.Name Next Set fil = Nothing Set fld = Nothing Set fso = Nothing End Sub Private Sub Drive1_Change() On Error GoTo err: Me.Dir1.Path = Me.Drive1.Drive err: End Sub