i am trying to use the various file functions in C# like File.GetLastWriteTime
, copy command on the file placed at the path greater than maximum allowed path on
try with this code
var path = Path.Combine(@"\\?\", filesToBeCopied[j]); //don't forget extension
"\?\" prefix to a path string tells the Windows APIs to disable all string parsing and to send the string that follows it straight to the file system.
Important : Not all file I/O APIs support "\?\", you should look at the reference topic for each API