Console tools in their own right are very useful, but they can be made even more useful by incorporating them into their own scripts and programs! This is usually done by capturing the output of the console program where it can then be analysed or processed by your script/program.
VBScript:
Here is a simple example demonstrating this using VBScript, a popular scripting language developed by Microsoft, but you can use just about any scripting or programming language. The output is captured by executing the program and redirecting its output to a file where it can then be read by your script or program:
Batch File:
Batch files (.BAT) in their simplest form are essentially just a list of command prompt instructions to execute in sequence. Here is an example of a simple batch file which uses several console tools and pipes their results into a single textfile:
Related websites:
MSDN: Microsoft Scripting technologies
Wikipedia: VBScript
Copyright © 2008, Diamond Computer Systems Pty. Ltd. All rights reserved.