Enable long path names?

GRoston

New member
Power User
VIP
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?
 

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
I can't say how to increase the path name size because I don't know and I'm sure it's hard coded in the core of Windows its self or it's computer science since that number of 260 is and interesting one...

You could try everyone's favorite Stack Exchange.

Couple pieces of software you may be interested in.


Download FastCopy - MajorGeeks


How To Rename Multiple Files (Windows) | Ubergizmo


Does this help? Question - file name too long | VB.NET Developer Community

For C# c# - Best way to resolve file path too long exception - Stack Overflow


PS:

Looks like a registry setting can be set in Windows 10 to enable long path names.
 
Last edited:

My Computer

Computer type
PC/Desktop
OS
Windows 7 Ultimate x64
Back
Top