🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: CreateProcess() passing cmd line args

#16116
From: Bob Gonder
Date: Sat, 31 May 2003 03:36
16 lines
1776 bytes
"Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> wrote:
>
>> char *fullcmdline = "c:\mytest.exe /myarg1";
>> CreateProcess(NULL,fullcmdline,.....);
>> This works,
>
>That is what you have to do to workaround the issue for the time being, yes.

I believe the docs suggest that you supply a full command line as the
second parameter, even if you use the first also.
ie:
CreateProcess( "Command.exe", "Command.exe Parameters",....)
You should also be able to do somethig weird like
CreateProcess("Command.exe","BogusCommand.exe Parameters",...)
So if Command looks at  argv[0] for it's exe name, it'll think it's
name is BogusCommand.exe.
Technical Details
Message-ID: <tc8gdv0dcqprq4q6ef4on5lsoipofdkgea@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ed7bb90@newsgroups.borland.com> <3ed7d9d1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,bd638ff0f0e40f6
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-30 20:41:24 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: CreateProcess() passing cmd line args
Date: Fri, 30 May 2003 20:36:28 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <tc8gdv0dcqprq4q6ef4on5lsoipofdkgea@4ax.com>
References: <3ed7bb90@newsgroups.borland.com> <3ed7d9d1$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.31.164.52
X-Trace: newsgroups.borland.com 1054352148 67.31.164.52 (30 May 2003 20:35:48 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail