Article View: borland.public.cppbuilder.nativeapi
Article #3127Re: Open cmd.exe from shortcut, execute command
From: Remy Lebeau (TeamB)
Date: Mon, 16 Oct 2006 17:24
Date: Mon, 16 Oct 2006 17:24
19 lines
1556 bytes
1556 bytes
"vortic" <vortic@users.sourceforge.net> wrote in message news:4531423c$1@newsgroups.borland.com... > I have a VCL form application, and on a button onClick Event, I want > to open a shortcut (CmdShortcut) pointing to cmd.exe You do not need to execute the shortcut. You can execute cmd.exe itself directly. Use the CreateProcess() function for that. > and run some command window application (SomeApp.exe) within the command window. Then you do not need to run cmd.exe at all. You can run SomeApp.exe directly instead. If it is a console application, then it will show the console window automatically. Gambit
Technical Details
Message-ID:
<4533c0c6$3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4531423c$1@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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4531423c$1@newsgroups.borland.com> Subject: Re: Open cmd.exe from shortcut, execute command Date: Mon, 16 Oct 2006 10:24:46 -0700 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 69.169.4.232 Message-ID: <4533c0c6$3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1161019590 69.169.4.232 (16 Oct 2006 10:26:30 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail