Hi there, am having trouble with my program, its a file locator program just like a search engine in a local drive:
heres wat i have coded:
but only display single file on my drive c:. and it doesnt compare the file that i'am looking for. the output of this code is always the same. Thing is it doesnt look inside a folder.
So my question is 1.) How i'am able to search a file inside a folder and display it
2.) How iam able the to look for a specific file in my drive c:, by in-putting a filename in a textbox. i hope u can picture what i'am trying to do.
Hoping for an immediate help! thank you....
heres wat i have coded:
Code:
Private Sub Command1_Click()
Dim SearchFile As String
Dim FileName As String
If Drive1.Drive = "c:" Then
SearchFile = Dir$("C:\*.*")
While SearchFile <> ""
List1.AddItem (SearchFile)
SearchFile = Dir$
Wend
End If
End Sub
So my question is 1.) How i'am able to search a file inside a folder and display it
2.) How iam able the to look for a specific file in my drive c:, by in-putting a filename in a textbox. i hope u can picture what i'am trying to do.
Hoping for an immediate help! thank you....
Comment