' For complete examples and data files, please go to https://github.com/groupdocs-metadata/GroupDocs.Metadata-for-.NET
Dim files As String() = Directory.GetFiles(directoryPath)
For Each path__1 As String In files
' detect format
Dim format As FormatBase = FormatFactory.RecognizeFormat(path__1)
If format Is Nothing Then
' skip unsupported format
Continue For
End If
If format.Type = DocumentType.Wav Then
Console.WriteLine("File {0} has WAV format", Path.GetFileName(path__1))
End If
Next