Count number of lines in a file using DOS

To count the number of lines in a file using DOS, use the following command. Replace filename.txt with the actual filename.
findstr /R /N "^" filename.txt | find /C ":"
This is especially useful when the file is very large (say, over 250k lines) and using NotePad to open the file would definitely hang. Just tested the command on a 1.4M lines file and it took about 2 minutes to give me the result.
Reference: http://brett.batie.com/?p=25

Vista Disk Management Console (diskmgmt.msc)

To launch Disk Management Console in Windows Vista, use Start > Run > type “cmd” > type “diskmgmt.msc”
I added a new internal IDE hard drive as an external hard drive using an IDE hard drive enclosure. Previously, I have been using Partition Magic but it appears that it does not work on Windows Vista. I researched a bit and found that Windows Vista comes with a disk partition utility called “Disk Management Console”. I was however, unable to find it in the Vista Control Panel. I finally figured out that you can launch the Disk Management Console in Windows Vista by typing “diskmgmt.msc” in the command line. Disk Management Console is also known as Logical Disk Manager.
Related Links:
http://en.wikipedia.org/wiki/List_of_disk_partitioning_software
http://en.wikipedia.org/wiki/Logical_Disk_Manager