I want to check if a certain network drive is accessible and exit my addin if not. It's an Outlook 2013 addin in VSTO. Anyway, I would like to search for it by UNC if possible as \192.168.0.2\WAN\ or I could use the drive letter as a last last resort, but not everyone uses the same letter for that drive in our company.
Anyway if I do Directory.Exists("path with correct drive letter");
it hangs. I want to just see if its there or not.
Can someone provide assistance and also give me a small example?
Oh and by the way, there is an answer where a process is spawned to do net use. I wanted to do it without spawning a new process wanted to know if it was possible.
Thanks a ton