PathLocalToUnc Method (String) |
A Local path, e.g.: "C:\Windows" will be returned as: "\\localhostname\C$\Windows"
If a logical drive points to a network share path, the share path will be returned.
Namespace: Alphaleonis.Win32.Filesystem
Exception | Condition |
---|---|
ArgumentException | The path parameter contains invalid characters, is empty, or contains only white spaces. |
ArgumentNullException | |
PathTooLongException | When localPath exceeds maximum path length. |
NetworkInformationException |