Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
Sub printFiles(parentDir As FolderItem, pattern As String)
|
||||
For i As Integer = 1 To parentDir.Count
|
||||
If parentDir.Item(i).Directory Then
|
||||
printFiles(parentDir.Item(i), pattern)
|
||||
Else
|
||||
Dim rg as New RegEx
|
||||
Dim myMatch as RegExMatch
|
||||
rg.SearchPattern = pattern
|
||||
myMatch = rg.search(parentDir.Item(i).Name)
|
||||
If myMatch <> Nil Then Print(parentDir.Item(i).AbsolutePath)
|
||||
End If
|
||||
Next
|
||||
End Sub
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
Dim f As FolderItem = GetFolderItem("C:\Windows\system32")
|
||||
Dim pattern As String = "((?:[a-z][a-z]+))(\.)(dll)" //all file names ending in .dll
|
||||
printFiles(f, pattern)
|
||||
Loading…
Add table
Add a link
Reference in a new issue