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.
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.
From memory, OS/2 worked with either / or \ as the directory
separator, but I may be wrong.
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
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 295 |
Nodes: | 16 (2 / 14) |
Uptime: | 19:05:02 |
Calls: | 6,640 |
Files: | 12,188 |
Messages: | 5,325,221 |