- Local time
- 7:27 PM
- Messages
- 374
I just wrote a Visual Basic program to count all of the files under a directory. Works fine, but I had to add a number of Try constructs to bypass files/directories whose name is too long. [Entire program is attached if anyone cares.] Yes, the long file name should be cleaned up, but these came from other computers, etc...
Question: Is there something I can do, either to my system or in the program, so that file/directory names that are longer than 260 characters do not cause an error to be thrown?
Question: Is there something I can do, either to my system or in the program, so that file/directory names that are longer than 260 characters do not cause an error to be thrown?
Attachments
My Computer
- Computer type
- PC/Desktop
- OS
- Windows 7 x64 Pro
- CPU
- Core i7 860 @ 3.8 GHz
- Motherboard
- MSI P55-GD80
- Memory
- 16 GB F3-12800CL7D (DDR3 1600 7-7-7-24)
- Graphics Card(s)
- Sapphire Vapor-X 100283VXL Radeon HD 5770
- Monitor(s) Displays
- NEC LCD3090WQXi-BK