Solved

Network Drive Availability Check

Posted on 2001-07-16
3
170 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

856 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