Below is a little Batch program to extract a range of lines from a text file and output them to the screen. A simple enough task, or so I thought!
Does Windows ever grind to a halt because of unresponsive or “zombie” processes? Is it sometimes so bad that opening Task Manager becomes a task in itself? Fortunately, there's a little-known program called
taskkill.exe that does exactly what its name suggests. In this post, I'll show you how to create a shortcut to
taskkill.exe that will kill those zombies with a single keystroke.
I have of late, wherefore I know not, started writing little Batch programs. Batch is ugly and buggy, but at the same time its raw minimalism makes it capable of performing surprisingly complicated tasks. Ah, but knowing how to exploit this power, therein lies the rub!
Let's start with the seemingly straightforward task of counting the lines in a text file and storing the result in a variable.