So I'm running windows 7 and I have a long program that runs through command prompt and I need the output of it. I put my Buffer Size and Number of Buffers to 999 but I still am unable to get the entire history from when my program starts running. Suggestions on how maybe I can either print the history to a file or copy the whole thing?
|
|
|||||||||||
|
|
Windows has something similar to the redirection operators in Linux. The exact same syntax can be used:
This will wipe the file of its old contents and fill it with the output of If you should need to append to the file (add more without wiping out the old contents), use the below syntax:
|
||||
|
|
|
What you want is called "redirection", and can be done in any terminal/command prompt. Just use Also note that a double-arrow will append to a file, as in |
|||
|
|
|
To send the output to the clipboard append Ex:
From my clipboard:
|
||||
|
|
|
Besides redirection, you can also increase the buffer size of the command prompt. Details are explained here: http://technet.microsoft.com/en-us/library/bb491037.aspx
In the Note section
|
|||
|

