I have been writing batch files in DOS since, oh man, like 1987. Back then if you wanted to make your own video game at home, you usually wrote a text-based game. Yeah we had vivid imaginations…
Anyhow, below I share common subroutines I use, tricks, and so forth. Many are universal, but often I wrote them to ease “Wintel” administration on which I would otherwise spend a lot of time. As the list grows I will further categorize and what not. I am not a developer by trade, so there may be better ways to do some of these things…
Tips and Best Practices
Batch Files:
Clean Directory – wipe an entire directory structure
Copy Structure – copies directory structure without files (could also use robocopy)
Write HTML – generate HTML code using a batch file
DOW Commands – Run a different set of commands for each day of the week



