🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10726

ShellExecite - parameters

#10726
From: Oldrich Masek
Date: Mon, 29 Mar 2004 09:36
20 lines
1383 bytes
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: <4067ee21@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,ba865b80a2d494a2,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-29 01:39:27 PST
From: "Oldrich Masek" <oldrich.masek@easetec.de>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: ShellExecite - parameters
Date: Mon, 29 Mar 2004 11:36:36 +0200
Lines: 22
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: <4067ee21@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1080552993 213.70.48.250 (29 Mar 2004 01:36:33 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail