Question Network directory error while disconnect

kunalshah6363

New member
Joined
Feb 10, 2010
Messages
1
Programming Experience
Beginner
I access directory from local network in my application.
my code is:
Dim mainDir As String = "\\192.168.15.50\abc"

For Each nextDir In Directory.GetDirectories(mainDir)
....
....
Next

my application is continues running. but sometime network is disconnect for a second and then automatically reconnect. so execution of application is stop with error in message box that path could not found.

So please give me a solution for this issue. So that application can run continues.
 
Back
Top