Groups | Search | Server Info | Login | Register


Groups > comp.os.os2.programmer.misc > #1698

Re: Parsed command info

From Dave Yeo <dave.r.yeo@gmail.com>
Newsgroups comp.os.os2.programmer.misc
Subject Re: Parsed command info
Date 2021-04-01 23:03 -0800
Organization Aioe.org NNTP Server
Message-ID <s46c4a$1bmi$1@gioia.aioe.org> (permalink)
References <s4544l$r78$1@dont-email.me>

Show all headers | View raw


On 04/01/21 10:41 AM, Iron Spring Software wrote:
> Is there a way to get a fully-parsed command line, with wildcard
> expansions, etc. from command.exe? For PL/I I have been using the
> command as typed from pib_pchcmd as the parm to the main procedure, but
> for compatibility with unix I'd like to also get argc and argv.

Seems most compilers libc should have a function to do that, for 
example, with GCC you can call _wildcard (&argc, &argv) at the beginning 
of main to expand wildcards, there's also _response (&argc, &argv) for 
expanding response files.
cmd.exe itself doesn't expand wildcards.
Dave

Back to comp.os.os2.programmer.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Parsed command info Iron Spring Software <Peter_Flass@Yahoo.com> - 2021-04-01 11:41 -0700
  Re: Parsed command info Ian Stewartson <IanStewartson@dial.pipex.com> - 2021-04-01 20:38 +0000
    Re: Parsed command info Dave Yeo <dave.r.yeo@gmail.com> - 2021-04-01 22:50 -0800
  Re: Parsed command info Dave Yeo <dave.r.yeo@gmail.com> - 2021-04-01 23:03 -0800
    Re: Parsed command info Peter Flass <peter_flass@yahoo.com> - 2021-04-02 12:24 -0700

csiph-web