vsto - C# How to Determine if Netwokr Path Exists w/o new Process -


i want check if network drive accessible , exit addin if not. it's outlook 2013 addin in vsto. anyway, search unc if possible \192.168.0.2\wan\ or use drive letter last last resort, not uses same letter drive in our company.

anyway if directory.exists("path correct drive letter"); hangs. want see if there or not.

can provide assistance , give me small example?

oh , way, there answer process spawned net use. wanted without spawning new process wanted know if possible.

thanks ton

you can run check on secondary thread may cancel if hangs. simplest way use backgroundworker component. see how run simple bit of code in new thread? more information. see how to: create , terminate threads (c# programming guide) in msdn.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -