I try to work with DirectoryInfo, FileInfo with very long path.
Can i use ~ in a path or something else.
I read this post but i would like to use another way that call a API. Is it any other solutions ?
There is an article from microsoft for use \\? in file path link text
The question is how can i work with very long path, and DirectoryInfo, and FileInfo for path who are more longer that 256 char
Looking at the Long Paths in .NET blog post series, it looks like going to the Win32 API through P/Invoke is the only solution at the moment, other than restructuring your directories so that you don't hit the limit.