|
-
Jul 14th, 2004, 03:28 PM
#1
Thread Starter
New Member
How to Time Out directory.exists(path)?
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|