How to Programmatically Get MAX_PATH for a PC

  • Thread starter Thread starter REvans611
  • Start date Start date
R

REvans611

Guest
My C#, .NET 4.7 application builds new file paths in a process which renames directories. I have read that MAX_PATH for Windows 10 is 256 characters. I have also read that it is 260 characters. And... I have read that it can be changed to a greater limitation in the Registry.

I do not want to throw an exception MAX_PATH is exceeded. My strategy is to alert the user before that occurs. So, how can I to programmatically find the true value of MAX_PATH from the current runtime environment?


Rob E.

Continue reading...
 

Similar threads

Back
Top