Click or drag to resize

HostGetHostShareFromPath Method

Gets the host and share path name for the given uncPath.

Namespace:  Alphaleonis.Win32.Network
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax
public static string[] GetHostShareFromPath(
	string uncPath
)

Parameters

uncPath
Type: SystemString
The share in the format: \\host\share.

Return Value

Type: String
The host and share path. For example, if uncPath is: "\\SERVER001\C$\WINDOWS\System32", its is returned as string[0] = "SERVER001" and string[1] = "\C$\WINDOWS\System32".

If the conversion from local path to UNC path fails, is returned.

See Also