need code for searching files
can someone tell me a code that can search files in the whole hard drive and display the location of the file in the textbox control or listbox control
ex. if the first file found then file display the location in text1.text and if the second file found dispaly it to text2.text
thanks in advance!!!
sorry for my poor english
Re: need code for searching files
Take a good look at this sample. If you're upto challenge then search that site for dozen other more advanced samples.
Re: need code for searching files
thanks
i tried the code on the link but i'm having a problem,why is it that it cant find file
pls help me any suggestion on what could be wrong, i just copy the paste from the link you gave me and add the controls.
thanks again!!!!
sorry for my poor english
Re: need code for searching files
Quote:
Originally Posted by makmaks
...why is it that it cant find file...
I don't know - whithout seen what you do it's impossible to suggest anything. :confused:
Quote:
Originally Posted by makmaks
...sorry for my poor english
That's hardly a problem arround here. :wave:
Re: need code for searching files
hey thanks its working now !!!!
can i ask one more thing?
if the file was found and the location of the file is seen in the listbox control,
how can i set the location of the firstfile found from the listbox to the text1.text and
the second file found to the text2.text
thanks i hope you understand
Re: need code for searching files
VB Code:
Text1.Text = List1.List(0)
Text2.Text = List1.List(1)
Re: need code for searching files
thanks you very much !!!1
Re: need code for searching files