clarghi
April 4th, 2001, 10:30 AM
Hallo,
I execute a my VB6 program from Dos prompt.
The program write some word in the Dos prompt but, when I write chr(13), I see (obviously) "Comando o nome di file non valido".
So, I want to capture this sentence so it doesn't appear in the Dos box.
I have found an example of Lothar and it's great, but it create the process while the process is already active in my program (is the batch who execute my program!), while the example use API Createprocess.
For example, if I go in Dos prompt and type "dir /?" I see the correct syntax; I want to optain an output like this; instead, when I write chr(13) from my program to the Dos Box I see the message above.
How can I do this?
If I write in the Ram Video I obtain the result?
If so, How can I do this?
Any other idea?
Looking forward for prompt replay.
b.r.
Cristiano Larghi
I execute a my VB6 program from Dos prompt.
The program write some word in the Dos prompt but, when I write chr(13), I see (obviously) "Comando o nome di file non valido".
So, I want to capture this sentence so it doesn't appear in the Dos box.
I have found an example of Lothar and it's great, but it create the process while the process is already active in my program (is the batch who execute my program!), while the example use API Createprocess.
For example, if I go in Dos prompt and type "dir /?" I see the correct syntax; I want to optain an output like this; instead, when I write chr(13) from my program to the Dos Box I see the message above.
How can I do this?
If I write in the Ram Video I obtain the result?
If so, How can I do this?
Any other idea?
Looking forward for prompt replay.
b.r.
Cristiano Larghi