If you can find a copy: “Windows NT Shell Scripting” by Tim Hill. While some commands options have changed in Windows XP and newer, all the concepts are the same.
From Microsoft Press: “Administrator’s Pocket Consultant: Microsoft Windows Command-Line” which covers Windows XP versions of the commands and some VBScript.
An item to review is WMIC which is a command line tool to the WMI interface.
A couple of web sites:
<a href=”http://www.umachandar.com/technical/CMDScripts/Main.htm”>CMD Scripts</a>
<a href=”http://commandwindows.com/command1.htm”>Introduction to the Command Prompt</a>