Getting a Windows command prompt contents to a text file
问题 I want to write a batch utility to copy the output of a command prompt window to a file. I run my command prompt windows with the maximum depth of 9999 lines, and occasionally I want to grab the output of a command whose output is off-screen. I can do this manually with the keys Ctrl-A , Ctrl-C and then pasting the result into Notepad - I just want to automate it in a batch file with a call to: SaveScreen <text file name> I know I can do it with redirection, but that would involve knowing