Extract a Range of Lines from a Text File

Posted On Mon, 27 Aug 2012

Filed under Batch
Tags: , , ,

Comments Dropped leave a response

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!

Read the rest of this post »

Advertisements

Kill Zombie Processes with a Keystroke

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.

Read the rest of this post »

Count the Number of Lines in a Text File

Posted On Thu, 9 Aug 2012

Filed under Batch
Tags: , ,

Comments Dropped leave a response

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.

Read the rest of this post »