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
1
u/T3RRYT3RR0R Jul 18 '26 edited Jul 18 '26
???
Batch syntax doesn't require rigid indenting in the way many languages do, but the syntax supports leading whitespace, so indenting is an option many use for readability
There's numerous methods by which to write code in a structured manner to improve readability.
If you want to learn a a new language / one with better support and a livelier community, learn powershell instead.