Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Get text from console app


ghost's Avatar
0 0

I want to save all the text from a console application, or from the whole command promt window, to a text-file. Is there a way to do this? Any language will do, but preferably it should be with batch, C++ or VB.


ghost's Avatar
0 0

try googleing filehandles with C++.


ghost's Avatar
0 0

manually: open command prompt window, go to location of application and type in: markupapp.exe >> C:\output.txt

batch script:

C:\location\to\application\app.exe >> C:\output.txt
more C:\output.txt```

this will conveniently place the contents in the root of your C drive in a file called output.txt and then read it out to you.

if you NEED an application (VB, C++, w.e) just ask and ill give you that info too.