zelarra821
Registered User.
- Local time
- Today, 12:38
- Joined
- Jan 14, 2019
- Messages
- 846
Good afternoon.
I am looking for a procedure that clears the properties of files from a folder.
Googling, the most I've found is this, that what it does is list the properties, but I don't know how I can delete them.
Thanks
I am looking for a procedure that clears the properties of files from a folder.
Googling, the most I've found is this, that what it does is list the properties, but I don't know how I can delete them.
Code:
Sub ExtendedFileDetails(FolderName As String, FileName As String)
Dim myFolder As Folder
Dim myItem As FolderItem
Dim myShell As New Shell
Dim i As Long
Dim Headers(0 To 34) As Variant
Set myFolder = myShell.Namespace(FolderName)
Set myItem = myFolder.ParseName(FileName)
For i = 0 To 34
Headers(i) = myFolder.GetDetailsOf(myFolder.Items, i)
Next i
For i = 0 To 34
Debug.Print i & vbTab & Headers(i) & vbTab & myFolder.GetDetailsOf(myItem, i)
Next i
End Sub
Thanks