I want to programmatically find out if my application is running from a network drive. What is the simplest way of doing that? It should support both UNC paths (\\127.0.0.1\d$) and mapped network drives (Z:).
I want to programmatically find out if my application is running from a network
Share
This is for mapped drive case. You can use the
DriveInfoclass to find out whether drive a is a network drive or not.Complete method and Sample Code.