[Mono-dev] Network file path URI

Tom Spink tspink at gmail.com
Thu Dec 15 11:42:28 EST 2011


On Dec 15, 2011 4:37 PM, "Mike Murdock" <mmurdock at allmeds.com> wrote:
>
> I am trying to point to a network file share and don’t know how to format
the URI
>
>
>
> I have tried \\server\share\path\test.jpg and it gives me a “Unreconized
escape sequence’ I tried switching the “/” put it does not load the file.
>
>
>
> Any Ideas?

Hi, you need to double up the backslashes, or put an @ sign at the start of
the string in order to tell the parser not to process escape codes:

"\\\\server\\share\\path\\test.jpg"
Or
@"\\server\share\path\test.jpg"

Tom.

> Michael Murdock
> Software Engineer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20111215/4c333903/attachment.html 


More information about the Mono-devel-list mailing list