HI
Wonder if anyone has any clues on how I can measure the path length to a file and return that value in bytes?
I have some very heavily nested subfolders and this is hitting the Windows path size limit of some 264 bytes (can't remember that value exactly).
I want to run all the paths through a checker to check for this limit before further processing.
Any clues please?
cheers
malcom
Measuring path length in bytes???
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

John ArcadellaRank #1,064 · 1.8K reputationPosted Feb 23, 2011, 6:13 AM EST
Byte[] bytes = encoding.GetBytes(yourString);