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.
- filePath (String)
- The path to be converted
converted path
| Exception | Condition |
|---|---|
| ArgumentException | If the argument is not a valid path |
| IOException | If the windows system call fails |