Click or drag to resize

PathCollectionGetUNCPathFromMappedDrive Method

This method needs the mpr.dll to work. (UNCPath length = max 1024 chars) This method should only be used with mapped drives, e.g. for a fixed drive an IOException occurs (Not Connected) See DriveType to determine whether the drive is a network share.

Namespace:  Jam.Shell
Assembly:  ShellBrowser.Core (in ShellBrowser.Core.dll) Version: 6.3.1
Syntax
public static string GetUNCPathFromMappedDrive(
	string filePath
)

Parameters

filePath
Type: SystemString
The path to be converted

Return Value

Type: String
converted path
Exceptions
ExceptionCondition
ArgumentExceptionIf the argument is not a valid path
IOExceptionIf the windows system call fails
See Also