Hello all,

I'm trying to use paths longer than 260 characters, but the classes
I've used like System.Directory seems to lack support of NTFS long
paths like:

\\?\d:\test
or
\\?\UNC\testmachine\testshare

Can anybody give me any clue on that?

Thanks in advance

Re: How to use in .Net path longer than 260 characters by Tom

Tom
Wed Apr 23 12:57:43 CDT 2008

On 2008-04-23, Francisco <fjgonzalez@arion.es> wrote:
> Hello all,
>
> I'm trying to use paths longer than 260 characters, but the classes
> I've used like System.Directory seems to lack support of NTFS long
> paths like:
>
> \\?\d:\test
> or
> \\?\UNC\testmachine\testshare
>
> Can anybody give me any clue on that?
>
> Thanks in advance

Not really a work around, but here is at least an explanation of why it
works the way it does:

http://blogs.msdn.com/bclteam/archive/2007/02/13/long-paths-in-net-part-1-of-3-kim-hamilton.aspx

Part 2 has some workarounds.

--
Tom Shelton