Oct
14
2009

Windows MAX_PATH limitation

While writing my last post, I stumbled across the definition of MAX_PATH on Windows:

1
#define MAX_PATH 260

That’s right, Windows path lengths are limited to 260 chars. I would have expected a lot of problems in big production systems with this limit. Luckily, there is an article in the Microsoft knowledge base with the solution:

…, select the folder one level above the folder that returns the error. Right-click the folder returning the error and then click Rename. Rename the folder to reduce the number of characters used in the folder name.

Another legacy limitation that will be hard to lift.

posted in legacy code, windows by admin

Follow comments via the RSS Feed | Leave a comment | Trackback URL

Leave Your Comment

You must be logged in to post a comment.

 
Powered by Wordpress and MySQL. Theme by openark.org