How can I determine if a string is a local folder string or a network string?

user526731 picture user526731 · Dec 1, 2010 · Viewed 19.9k times · Source

How can I determine in c# if a string is a local folder string or a network string besides regular expression?

For example:

I have a string which can be "c:\a" or "\\foldera\folderb"

Answer

jtdubs picture jtdubs · Dec 1, 2010

new Uri(mypath).IsUnc