Article View: borland.public.cppbuilder.nativeapi
Article #3129Re: Open cmd.exe from shortcut, execute command
From: vortic
Date: Tue, 17 Oct 2006 06:14
Date: Tue, 17 Oct 2006 06:14
19 lines
1788 bytes
1788 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message > > "vortic" >> I open Cmd.exe instead of the app directly, as I like to run > it through >> a command window because the app auto closes and I like to look >> at the output. > > If you use CreateProcess() to run the console application directly, you > can > capture the output and display it in your own program. CreateProcess() > allows you to assign your own handles for STDIN/STDOUT/STDERR. So your > program could use CreatePipe() to create handles for STDOUT and STDERR, > and > then use ReadFile() to receive any data the console application outputs. > Perfect. This is exactly what I really want anyway. I'll give this a shot. Thanks Remy
Technical Details
Message-ID:
<453474b4@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4531423c$1@newsgroups.borland.com> <45316a45$1@newsgroups.borland.com> <453187e4$1@newsgroups.borland.com> <4533c151@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c75cbeeeafb4b920 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "vortic" <vortic@users.sourceforge.net> Newsgroups: borland.public.cppbuilder.nativeapi References: <4531423c$1@newsgroups.borland.com> <45316a45$1@newsgroups.borland.com> <453187e4$1@newsgroups.borland.com> <4533c151@newsgroups.borland.com> Subject: Re: Open cmd.exe from shortcut, execute command Date: Tue, 17 Oct 2006 02:14:11 -0400 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 67.68.137.17 Message-ID: <453474b4@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1161065652 67.68.137.17 (16 Oct 2006 23:14:12 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail