I have searched the archives for what I'm looking for and haven't had any luck. What I need to do is write a quick & dirty simple application that will search my entire computer for a string. It needs to search not just the C:\ but the DeskTop, My Documents, etc. I know I need the System.IO namespace. My only problem is determining what is the lowest level starting point for my loop? For example:
Thanks,Code:For Each dir as Directory on Computer For Each fl as File in dir Dim str as String = "" Dim intPos as Integer = 0 Open fl While Not fl.EndOfStream str = fl.ReadLine intPos = Instr(str, "String Object") If intPos > 0 Then Do something End If End While fl.Close Next Next




Reply With Quote