Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"All my life I wanted to be someone; I guess I should have been more specific." -- Jane Wagner


devel / comp.os.ms-windows.programmer.win32 / Re: CreateProcess not executing dir

SubjectAuthor
* Re: CreateProcess not executing dirR.Wieser
`* Re: CreateProcess not executing dirmuta...@gmail.com
 `- Re: CreateProcess not executing dirR.Wieser

1
Re: CreateProcess not executing dir

<s8icif$j93$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=174&group=comp.os.ms-windows.programmer.win32#174

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!aioe.org!wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org.POSTED!not-for-mail
From: address@not.available (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: CreateProcess not executing dir
Date: Tue, 25 May 2021 10:29:58 +0200
Organization: Aioe.org NNTP Server
Lines: 33
Message-ID: <s8icif$j93$1@gioia.aioe.org>
References: <caf68bac-fdeb-4ed9-85f5-d55b742f9a82n@googlegroups.com> <804fac29-ae33-468e-81a3-24af9f23da87n@googlegroups.com>
NNTP-Posting-Host: wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org
X-Complaints-To: abuse@aioe.org
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-Notice: Filtered by postfilter v. 0.9.2
 by: R.Wieser - Tue, 25 May 2021 08:29 UTC

Muta,

> I found that I needed to
> add "c:" before the "/c".

No (not exactly).

> Any idea what that is about?

Yes.

A question though: Have you already tried to replace that "c:" with
something like "foo", "bar" or just some other random string / character ?
Why not ? :-)

> I don't see it mentioned in "cmd /?" nor the CreateProcess()
> documentation.

Look again :

[quote]
If both lpApplicationName and lpCommandLine are non-NULL,
.....
Because argv[0] is the module name, C programmers generally ***repeat the
module name as the first token in the command line***.
[/quote]

("***" added for emphasis)

Regards,
Rudy Wieser

Re: CreateProcess not executing dir

<99e83303-04fe-4902-bc30-db447dda0ab0n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=175&group=comp.os.ms-windows.programmer.win32#175

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
X-Received: by 2002:aed:30c1:: with SMTP id 59mr103802qtf.16.1621965328836;
Tue, 25 May 2021 10:55:28 -0700 (PDT)
X-Received: by 2002:ac8:7247:: with SMTP id l7mr33069907qtp.280.1621965328690;
Tue, 25 May 2021 10:55:28 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.ms-windows.programmer.win32
Date: Tue, 25 May 2021 10:55:28 -0700 (PDT)
In-Reply-To: <s8icif$j93$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=202.169.113.201; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG
NNTP-Posting-Host: 202.169.113.201
References: <caf68bac-fdeb-4ed9-85f5-d55b742f9a82n@googlegroups.com>
<804fac29-ae33-468e-81a3-24af9f23da87n@googlegroups.com> <s8icif$j93$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <99e83303-04fe-4902-bc30-db447dda0ab0n@googlegroups.com>
Subject: Re: CreateProcess not executing dir
From: mutazilah@gmail.com (muta...@gmail.com)
Injection-Date: Tue, 25 May 2021 17:55:28 +0000
Content-Type: text/plain; charset="UTF-8"
 by: muta...@gmail.com - Tue, 25 May 2021 17:55 UTC

On Tuesday, May 25, 2021 at 6:30:11 PM UTC+10, R.Wieser wrote:

> Because argv[0] is the module name, C programmers generally ***repeat the
> module name as the first token in the command line***.

Thanks Rudy!

I'm now on to hopefully the last problem, this time
seemingly with HX.

But it seems to me that this is quite misleading:

To run a batch file, you must start the command interpreter; set lpApplicationName to cmd.exe and set lpCommandLine to the following arguments: /c plus the name of the batch file.

It doesn't suggest that you're supposed to put something
before the "/c" as mentioned elsewhere.

BFN. Paul.

Re: CreateProcess not executing dir

<s8jjq6$bl3$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=176&group=comp.os.ms-windows.programmer.win32#176

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!aioe.org!wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org.POSTED!not-for-mail
From: address@not.available (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: CreateProcess not executing dir
Date: Tue, 25 May 2021 21:39:43 +0200
Organization: Aioe.org NNTP Server
Lines: 22
Message-ID: <s8jjq6$bl3$1@gioia.aioe.org>
References: <caf68bac-fdeb-4ed9-85f5-d55b742f9a82n@googlegroups.com> <804fac29-ae33-468e-81a3-24af9f23da87n@googlegroups.com> <s8icif$j93$1@gioia.aioe.org> <99e83303-04fe-4902-bc30-db447dda0ab0n@googlegroups.com>
NNTP-Posting-Host: wIgm+2MIUUYkuZKIR0Uhug.user.gioia.aioe.org
X-Complaints-To: abuse@aioe.org
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Notice: Filtered by postfilter v. 0.9.2
X-RFC2646: Format=Flowed; Original
X-MSMail-Priority: Normal
X-Priority: 3
 by: R.Wieser - Tue, 25 May 2021 19:39 UTC

Paul,

> Thanks Rudy!

You're welcome. And yes, I've run into the same problem myself. :-)

> But it seems to me that this is quite misleading:
....
> It doesn't suggest that you're supposed to put something
> before the "/c" as mentioned elsewhere.

True, but they are talking about a Microsoft OS, not FreeDos. And its
rather possible that its not the problem of the CreateProcess function, but
that of the executed program : /it/ expects the modulename to come first.

Than again, I seem to remember a similar problem, which I solved by starting
the commandline arguments with a single space.

Regards,
Rudy Wieser

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor