Article View: borland.public.cppbuilder.nativeapi
Article #3118Open cmd.exe from shortcut, execute command
From: vortic
Date: Sat, 14 Oct 2006 20:02
Date: Sat, 14 Oct 2006 20:02
11 lines
1390 bytes
1390 bytes
I have a VCL form application, and on a button onClick Event, I want to open a shortcut (CmdShortcut) pointing to cmd.exe, and run some command window application (SomeApp.exe) within the command window. I have no idea how to do this because I can't seem to use the online help very effectively. I can't even figure out how to execute any app or get a command line. I'm using Turbo C++ Explorer on XP SP2. Any help appreciated. p.s. Should have I posted this to cppbuilder.language.cpp ??
Technical Details
Message-ID:
<4531423c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.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-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c75cbeeeafb4b920,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "vortic" <vortic@users.sourceforge.net> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Open cmd.exe from shortcut, execute command Date: Sat, 14 Oct 2006 16:02:05 -0400 Lines: 13 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 NNTP-Posting-Host: 67.68.137.17 Message-ID: <4531423c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1160856124 67.68.137.17 (14 Oct 2006 13:02:04 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.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