I want to copy the whole output of a console application programmatically into clipboard (so user can get this automatically without tinkering with cmd window).
I know how to access clipboard. I dont know how to get a console window text from C#.
C# 3.5 / 4
One basic solution below (just redirecting standard output to a
StringBuilderinstance).You probably need to add the reference to
System.Windows.Formsyourself in a console application.