CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    156

    Big head ache. How to query network drive availability

    Hi,

    My application needs to scan all network mapped drives continuously (every 5 seconds) to see if they are accessible and if any new drive or share is added since last scan. Is there any way to do that without causing network timeout (can be up to 1 or 2 minutes), otherwise my app will appear to have died (hung).

    One of the reasons for this requirement is that my app. will load some configuration files, from networked drives, before startup. Therefore I can't afford to try to open each of these files in turn, and to wait, to see if they are accessible.

    If any solution works on Window95/98 then it is a bonus, but I'll be a happy man if it is possible at all under NT alone. Can any one help please.

    Thanks in advance.

    Will


  2. #2
    Join Date
    May 1999
    Posts
    26

    Re: Big head ache. How to query network drive availability

    Hi!

    You can use the _chdrive() function, and based on the return value you can determine if the drive is available. If you need further help, please contact me.

    Santhosh



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured