Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB.net Loop, Looking for a file

Status
Not open for further replies.

bjr149

Programmer
Jul 18, 2005
26
US
Im trying to write a program that will continually look for a file every say 5 minutes. Once it finds the file it will do some sort of processing. I think im just having a brainfart.

The way i do it now it endlessly loops to start and everything freezes lol. Here is how im thinking of hnadling it...

Private Sub moveESM_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Flag_Run = False

While (Flag_Run <> True)

Timer1.Enabled = True

End While


End Sub


as you can tell this will not work it keeps looping endlessly. Some suggestions would help. Thanks
 
FileSystemWatcher

Do a search for the above e.g. at google for little documentation. You can find out how it works without any help. It is easy.
In case that troubles you.. post!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top