PathLocalToUnc Method (String) |
A Local path, e.g.: "C:\Windows" will be returned as: "\\MachineName\C$\Windows".
If a logical drive points to a network share path, the share path will be returned instead.
Namespace: Alphaleonis.Win32.Filesystem
If the conversion fails, localPath is returned.
If localPath is an empty string or , is returned.
Exception | Condition |
---|---|
ArgumentException | |
PathTooLongException | |
NetworkInformationException |