Path too long exception

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

How to deal with this exception?
I need to quickly make my appl to be able to open files beyong this limit
Any help appreciated.

Peter
 
Peter said:
How to deal with this exception?
I need to quickly make my appl to be able to open files beyong this limit
Any help appreciated.

I believe this is a limitation of Windows, not of .NET.
 
Dans : John Saunders [MVP] disait :
I believe this is a limitation of Windows, not of .NET.

I think some Windows API can handle path longer than 260 chars in their
Unicode version.
But the framework defines the max to 260.
So, the solution could be to use API perhaps.
 
Hello Peter,

use unicode version if winapi.
Just user the "\\?\" prefix for this http://msdn2.microsoft.com/en-us/library/aa365247.aspx

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


P> Thanks
P>
P> I already found out myself.
P> It is limitation of ansi WinAPI.
P> Found quick solution here:
P> http://www.abtollc.com/products.aspx
P>
P> there are c++ and .NET wrapper.
P>
P> Thanks
P>
P> Fred wrote:
P>
 
Back
Top