Catch the output of console tools?

Windows specific forum
Kazmirzak
User
User
Posts: 92
Joined: Fri Jun 18, 2004 5:44 pm
Location: Germany

Catch the output of console tools?

Post by Kazmirzak »

Some tools (for example some mp3-encoder) create some responses in a console window. The problem is that opened with RunProgram or ShellExecute, the outputwindow disappears before you are able to read the content.

Is it possible to cath this output (I think something like changing the standard output) into a string in PureBasic?
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Re: Catch the output of console tools?

Post by Rings »

Kazmirzak wrote:Some tools (for example some mp3-encoder) create some responses in a console window. The problem is that opened with RunProgram or ShellExecute, the outputwindow disappears before you are able to read the content.

Is it possible to cath this output (I think something like changing the standard output) into a string in PureBasic?
have you ever used the search-function or browsed purearea.net ?

i have done that long before and you are the 108 . user which ask for without searching itself . perhaps the searchfunction did not work.

viewtopic.php?p=12529&highlight=redirected+pipes#12529
SPAMINATOR NR.1
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

Rings,

Be fair. Pipes is a unix expression and not many Win32ers are familiar with it.

The post doesn't mention Console, RunProgram or ShellExecute.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

El_Choni's CGI lib may be some use here. I couldn't find it anywhere though.
:?
--Kale

Image
Post Reply