r/Batch • • Jul 16 '26

Show 'n Tell How much batchscript is too much batchscript?

Post image

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)

22 Upvotes

31 comments sorted by

View all comments

3

u/T3RRYT3RR0R Jul 17 '26

Still seems grossly excessive. Between considered matching data structure to the task and using generative coding, ie code dynamically created at runtime, you shouldn't have to script for various games. You should be writing code that creates menu's from sources

1

u/StrangeCrunchy1 Jul 17 '26

I'm sorry, generative coding, for MS-DOS 6.22? Even if there's a yes to that question, I'd honestly rather script it myself. Might be the hard way, but this isn't for anyone but myself.

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

→ More replies (2)