-
Dos Output
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
-
Re: Dos Output
So, no one knows? This is a pity: I have a full ten for a good answer!
Special thanks to Lothar "the Great" Haensler. Come back soon, you Guru.
-
Re: Dos Output
Still looking to give a full ten to someone...
Special thanks to Lothar "the Great" Haensler. Come back soon, you Guru.
-
Re: Dos Output
Command.com, I think, execute the .exe but if it's 16bit it wait until it ends, while if it's 32bit it return immediatly.
I run the .exe from command.com and I execute the API findwindow to find the Dos Shell which execute the program: half time I have a valid handle, half it return 0; this is why the caption of the box became the name of the program only for a short time.
So, how can I determine if I execute my program from a Dos box?
If what I supposed it's right, there is a way to "mascherate" the program so command.com (or cmd.com) think it's a 16-bit program?
I know it's written in the header of the exe...
looking forward for prompt reply
b.r.
Cristiano Larghi
-
Re: Dos Output
Hallo,
Nothing know how I can do this?
b.r.
Cristiano Larghi