|
-
April 4th, 2001, 10:30 AM
#1
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
-
April 6th, 2001, 02:28 AM
#2
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.
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
-
April 9th, 2001, 03:48 AM
#3
Re: Dos Output
Still looking to give a full ten to someone...
Special thanks to Lothar "the Great" Haensler. Come back soon, you Guru.
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
-
April 9th, 2001, 04:34 AM
#4
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
-
April 20th, 2001, 06:48 AM
#5
Re: Dos Output
Hallo,
Nothing know how I can do this?
b.r.
Cristiano Larghi
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|