Solved DOS problem

December 28, 2011 at 10:19:05
Specs: Windows 7
How do i capture the output of an executable file in a normal .txt format while i execute it using DOS?

See More: DOS problem

Report •

✔ Best Answer
December 29, 2011 at 16:55:14
As Ewen states, there is no DOS in Windows 7, so any file executed from the command prompt is running under Windows, not DOS. Any output from the application is dependant on the the programmer programmed it. Unless the programme is programmed to output to the console, and most Windows applications are not, you wont be able to do it.

The only applications that can be redirected are those that display in the command prompt Window such a ipconfig netstat, dir etc. If the application executes from a GUI window after being initiated from a command prompt then the output will go to the GUI window it is running in, not the command window.

So where does the output from this application normally go?

Stuart



#1
December 28, 2011 at 11:26:39
Use the redirection operator (>).

program.exe >output.txt


Report •

#2
December 28, 2011 at 23:42:27
i dont mean that. in dos prompt after executing the program.exe i get an output and i want to store that in a text file using dos command.

Report •

#3
December 29, 2011 at 14:50:40
There is no DOS in Win7 but there is a Command Prompt... I don't think you can achieve what you are trying to do here.

Report •

Related Solutions

#4
December 29, 2011 at 16:55:14
✔ Best Answer
As Ewen states, there is no DOS in Windows 7, so any file executed from the command prompt is running under Windows, not DOS. Any output from the application is dependant on the the programmer programmed it. Unless the programme is programmed to output to the console, and most Windows applications are not, you wont be able to do it.

The only applications that can be redirected are those that display in the command prompt Window such a ipconfig netstat, dir etc. If the application executes from a GUI window after being initiated from a command prompt then the output will go to the GUI window it is running in, not the command window.

So where does the output from this application normally go?

Stuart


Report •

#5
December 30, 2011 at 09:17:09
I think ijack had it correctly.

1/3 of highway deaths are caused by drunks. The rest are by people who can't drive any better than a drunk.


Report •

Ask Question