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: | 113 |
Nodes: | 8 (0 / 8) |
Uptime: | 12:41:26 |
Calls: | 2,497 |
Calls today: | 14 |
Files: | 8,646 |
Messages: | 1,902,874 |