How to handle Length of File's Names > 256 in .Net ?
i have file's names appended folder name greater 256 or 260 (whatever) characters
i have application in c# .net every file reads file's size, mentioned files above gets error "could not find file ........"
my os xp sp3 lot of hotfixes, updates, etc, etc.
the question :
1) if xp allow existence of files mentioned above why .net framework can not handle ?
2) how can goal : read file' sizes ?
its out of question : not going rename or move files , have read size of files.
i need solution/strategy language-independent , independent of .net framework version.
thank in advance.
you can work via long path classes bcl team: http://bcl.codeplex.com/wikipage?title=long%20path&referringtitle=home
for details, see: http://blogs.msdn.com/b/bclteam/archive/2007/02/13/long-paths-in-net-part-1-of-3-kim-hamilton.aspx
reed copsey, jr. - http://reedcopsey.com
if post answers question, please click "mark answer" on post , "mark helpful".
.NET Framework > Common Language Runtime Internals and Architecture
Comments
Post a Comment