In Windows 7 and Windows Server 2008, is there a way to quickly detect if the target of a symbolic link is available?

For example, a symbolic link is created to a remote share UNC using the following command,

mklink /D c:\test \\remote-server\share

Now, if the remote share can no longer be reached (for example, the remote server is shutdown), attempting to access c:\test can take a number of seconds to timeout and fail. Eventually, Windows will display an error saying that the target is not available. Specifically, dir c:\test will output "File Not Found", cd /D c:\test will output "The network path was not found.", and Windows explorer will show an error stating "The specified network name is no longer available".

Is there a way to check the availability of c:\test without incurring that long timeout, or can the timeout value be adjusted?

link|improve this question
1  
The timeout can probably be adjusted, but not removed entirely. I don't know how to adjust it, but I would be careful not to set it too low or it will kill legitimate connections – Darth Android Jun 15 '11 at 20:06
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.