How to (quickly) check if UNC Path is available

前端 未结 7 665
太阳男子
太阳男子 2020-12-05 06:45

How can I check if a UNC Path is available? I have the problem that the check takes about half a minute if the share is not available :

var          


        
7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-05 07:14

    Thats probably the quickest way, the delay will be the general network speed/disk access etc.

    If this is causing a delay for the user, you could try checking this asynchronously?

提交回复
热议问题