How to increase file path character limit
How do y开发者_Go百科ou use the \\?\
correctly to ensure that the file path size doesnt throw a took long exception at 250 characters? The code i have posted fails to work correctly.
Thank you
foreach (string filePath in Directory.GetFiles(folder))
{
String path = @"\\?\" + filePath;
...
.Net 1.0-4.0 does not support long paths:
more information on why .NET currently lacks built-in support for long paths
精彩评论