I'm trying to create a batch file that stores one or more large files within it as base64 encoded strings, then converts them back into files. I've been following the first answer on this question: Store a file inside of a batch file? but i'm trying to store a ~3mb file within this batch file, and when it comes to writing the files source back to a file (via echo), the batch file appears to crash. I get a popup saying 'Windows Command Processor has stopped working'.
Is there a limit to how much data batch files can write to a file in one go?
I've followed the example correctly, only changing the file.tmp name to filetest.tmp, but there are around 47,000 lines in this batch file (which is probably what's causing it to crash).
Any idea on how to get around this?
Edit: certutil encoded the original files quite fast, so I assume that part is not the issue.
I suggest you to review the last version of my Binary to Batch encoding program: BinToBat.bat; it have a series of very useful features for this type of encoding. This is the help screen:
This program has been successfully tested with files of 15 MB size, that are encoded in a reasonable time (8-9 minutes) and extracted even faster. Of course, these times depends on the computer used.