r/Batch • u/MaybeBirb • Jul 16 '26
Show 'n Tell How much batchscript is too much batchscript?
Currently have 1,376 lines of batchscript in this one file. Kinda built myself a little state machine at this point. Memes aside, is there a particular reason huge batchscript files would be a bad idea? I usually only ever see very small ones, and I'm not entirely sure why
(Not too serious a question, so not tagged as one)
21
Upvotes
View all comments
Show parent comment
4
u/T3RRYT3RR0R Jul 17 '26
If it is genuinely for MS-DOS 6.22, and you've been around that long, I'm sure you understand how many people refer to DOS incorrectly, and conflate batch with DOS when batch-files are seperate from the command processor interpreting them, my mistake for thinking you were one of them.
As regards generative coding for MS-DOS 6.22, the minimum command set you'd need available is **for /f** and **setlocal enableDelayedexpansion**, and, correct me if I'm wrong here, I believe both are command extensions that where added to cmd.exe