Solved

Network Drive Availability Check

Posted on 2001-07-16
3
169 Views
Last Modified: 2010-04-06
Can anyone point me in the direction of a component or routine that will check if a network drive is still accessable without hangint the P.C.


Ta!
0
Comment
Question by:chunky1
3 Comments
 
LVL 1

Expert Comment

by:darkloser
ID: 6287073
listen...
0
 
LVL 4

Accepted Solution

by:
YodaMage earned 10 total points
ID: 6287542
Try to read or write to it in a try except test, return a boolean of true in the try, false in the exception.
0
 

Expert Comment

by:Yunoshev
ID: 6289956
if (GetDriveType(RootPathName) == DRIVE_UNKNOWN)
{
  ...........
}
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

939 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now