Directory.GetDirectories Method (String) (System.IO)
Recursive calling would be a good idea to get to the very end of all folders, if there are that many.
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.
Directory.GetDirectories Method (String) (System.IO)
Recursive calling would be a good idea to get to the very end of all folders, if there are that many.
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
Last edited by Lolland; 11-29-2010 at 11:11 PM.
Naw mang you didn't just write that in post reply, it looks too close to this, function/variable names and all.
How to recursively search directories by using Visual C#
'Bruno (11-29-2010),Blubb1337 (11-29-2010),Hassan (11-29-2010),Lolland (11-29-2010),[MPGH]master131 (11-29-2010)
Please remember to give credits
NextGen1 (11-29-2010)
on top of that, C# stays in C#