Delete Tree fails on folders containing paths over 260 characters

Our folders have a lot of content in them and I recently noticed they are going over 260 characters in total length. Delete Tree fails on these paths.  Is it possible to get a fix for this?  The work around I have is calling cmd /c rmdir %longdir% /s /q followed by a fail if exist action.  

FinalBuilder 6.4.0.2140 on Win2k8 against a Win2k3 file server.

Thanks,

-Nelson

Hi Nelson

This is not a bug, it's a limitation of the windows RemoveDirectory API function (and many others).

FYI :

RemoveDirectory
http://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx

Naming Files etc - definitely worth a read for anyone developing on windows.

http://msdn.microsoft.com/en-us/library/aa365488%28VS.85%29.aspx

You may be able to use the \\?\ prefix to get around this, I know it works in FB7 (which is a unicode enabled application) but not sure about FB6.

Thanks for the links, very good information.