in reply to how to get cmd prompt output

Please see:

There is also a very nice little utility called, predictably, "Clipboard" which allows you to capture output from a DOS command prompt and copy it to the Windows Clipboard. The article may be found here: Print From Any Console Application, by Bill Wagner (a free, AFAIK, registration is required). If you go to Visual Studio Magazine and type vsep030228cs into the "Locator+ Code" field, you should be able to download the C# source as a .zip file. Usage is as follows:


Prompt> dir | clipboard -c

..copies to the clipboard.

Prompt> dir | clipboard -p

.. Prints the output

Prompt> dir | clipboard -c -p

Copies to the clipboard, and prints it.

HTH,

planetscape