I've been downloading a lot of VB6 projects from GitHub to test in twinBASIC. When these have been uploaded with certain settings, GitHub replaces the vbCrLf line breaks with vbLf only, which results in a corrupt file that VB6 can't read. tB can-- but I need to confirm working in VB6 first. So I made this small project to automatically repair the line breaks of all VB6 files in a given directory, with a number of options to help. The file type list is preset, but you could change it to work on any file type instead.

This project uses my tbShellLib project for all the APIs (this is why the source file size is so large; however the compiled exe uses only what is neccessary, so is only 2MB). Can be compiled to both 32bit and 64bit. I've tested to confirm the output is byte for byte identical to using WinHex to manually replace 0x0A with 0x0D 0x0A, and the app checks whether the line breaks already appear to be correct.

I've gotta say, I use to always put my APIs locally, copying them into each project. But I'm *really* starting to like having 99%+ of the Windows APIs on tap and programming like I'm in C++ with #include <Windows.h>. tbShellLib is up to like 5,500 APIs now (not counting the A/W variants).

Written in twinBASIC, but trivially simple to convert to VB6 if you must... the Utility Bank doesn't seem to be language-specific. The repository also has builds.

https://github.com/fafalone/LinebreakRepair