Is there a way to look at what the windows command prompt just closed?

When the command prompt opens and then just closes really fast (because there isn't a pause line) is there a way to see what it just showed you?

Answers


Not after the fact, no. Once it's gone, it's gone. If you have the luxury of being able to run it again (i.e., you know what program or command was executed), then you can use some of the other suggestions noted here, and then count on the output from your run being the same as it was in the previous run. Suggestions include running the command in an already-open console window, piping the output to a file so you can read it later, and running the program in a batch file that has the pause command afterward.


You can pipe the output to a file.

something.exe > c:\temp\output.txt

This works on the prompt and in the windows run dialog box.


Need Your Help

How to select GUID column by another GUID column in VB.net?My Select query does not work

asp.net sql-server vb.net select guid

I am new to programming and get the chance to work and maintain in another developers project.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.