I have a folder containing few files. I would like to get, for each file, a list of all the properties assigned to this file and their values.
I have written these few lines but I am not able to identify the right methods to use in the placeholders MethodIamLookingFor1 (to get list of properties assigned), MethodIamLookingFor2 (to get property name) and MethodIamLookingFor3 (to get property value):
Dim sFolder
sFolder = "C:\Batch_DEV\to"
Dim objFSO, objDir, listObjFiles, objFile
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objDir = objFSO.GetFolder(sFolder)
Set listObjFiles = objDir.Files
For Each objFile In listObjFiles
Wscript.Echo objFile.name & ": "
listProperties = objFile.MethodIamLookingFor1
For Each objFileProperty In listProperties
Wscript.Echo "property name is: " & objFileProperty.MethodIamLookingFor2
Wscript.Echo "property value is: " & objFileProperty.MethodIamLookingFor3
Next
Next
Could you please help? thanks!