Alright guys so im making an anti cheat program which scans files md5 signature and if contains a hacks md5 signature then it reports it to the leader but anyway i just want to know how find the names of a sub folder within a folder. Ex: i have a folder at C:\hi and that folder has a sub folder within it named "bye" how would i find this via VB?
Thanks, Bombs.
Recursive calling would be a good idea to get to the very end of all folders, if there are that many.
Posts 1–8 of 8 · Page 1 of 1
Post a Reply
Tags for this Thread
None
Here we go. Correct any errors as necessary. Just wrote it on MPGH post reply, so yeahs. C# and Visual Basic versions provided.
You will need to put your MD5 hashes which you want to check against in an array, either hard coded or loaded from a file or from a website or however you want into a string[] called "MD5Hashes". You can change the variable names if you wish.
Code:
Private Sub DirSearch(sDir As String)
For Each d As String In Directory.GetDirectories(sDir)
Console.WriteLine(d)
DirSearch(d)
Next
End Sub
Private Function main() As Integer
DirSearch("C:\freedompeace")
End Function
Naw mang you didn't just write that in post reply, it looks too close to this, function/variable names and all.