How to use in .Net path longer than 260 characters

F

Francisco

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
 
T

Tom Shelton

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top