Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static bool IsUNCPath(string path)
- {
- if (path.StartsWith(@"\\"))
- {
- int num = path.Substring(2).IndexOf('\\') + 2;
- if ((num > 2) && (num < path.Length))
- {
- return true;
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment