Article View: borland.public.cppbuilder.nativeapi
Article #10580Re: ShellExecite - parameters
From: Oldrich Masek
Date: Mon, 29 Mar 2004 09:43
Date: Mon, 29 Mar 2004 09:43
31 lines
1651 bytes
1651 bytes
ok, next time I will RTFM. The first NULL can be a string of parametes. Oldrich "Oldrich Masek" <oldrich.masek@easetec.de> schrieb im Newsbeitrag news:4067ee21@newsgroups.borland.com... > Hi, > > I would like to execute an executable from my CPP application, but I don't > kwon how to pass the parameters to the called executable. > Example: > This works just fine: > ShellExecute(Application->Handle, "open", "application2", NULL, NULL, > SW_SHOW); > > but when I put parameters for the "application2" the application doesn't get > run. > This I would like to do: > ShellExecute(Application->Handle, "open", "application2 PARAM1 PARAM2", > NULL, NULL, SW_SHOW); > > does anybody have an idea how to do it? > > Regards > > Oldrich > >
Technical Details
Message-ID:
<4067efb2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4067ee21@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,ba865b80a2d494a2 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-03-29 02:01:12 PST From: "Oldrich Masek" <oldrich.masek@easetec.de> Newsgroups: borland.public.cppbuilder.nativeapi References: <4067ee21@newsgroups.borland.com> Subject: Re: ShellExecite - parameters Date: Mon, 29 Mar 2004 11:43:09 +0200 Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 213.70.48.250 Message-ID: <4067efb2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1080553394 213.70.48.250 (29 Mar 2004 01:43:14 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail