I have an application that I'm writing that connects to different computers on the network and checks how much drive space is left. The problem I'm having is, when a computer isn't on the network it takes really long before it times out and continues on to the next. Here's some code I'm using

If Directory.Exists(path) Then
'Get object.
mydrive = fso.GetDrive(path)
'Check for success.
sngFS = mydrive.FreeSpace
sngFS = ((sngFS / 1024) / 1024) / 1024
sngFS = Math.Round(sngFS, 2)
sngDS = mydrive.TotalSize
sngDS = ((sngDS / 1024) / 1024) / 1024
sngDS = Math.Round(sngDS, 2)
Condition = FrmDriveData.Determine_Condition(sngFS, sngDS)
...

Is there anyway to make the Directory.Exists time out???

Thanks