When running a C program, you can use either of the two DOS wildcards—the question mark (?) and the asterisk (*)—to specify filename and pathname arguments on the command line.
Command-line arguments are handled by a routine called _setargv, which by default does not expand wildcards into separate strings in the argv string array. You can replace the normal _setargv routine with a more powerful version of _setargv that does handle wildcards by linking with the SETARGV.OBJ file.
You can link with SETARGV.OBJ from within PWB by adding SETARGV.OBJ to the program list for your program. You must specify the complete path or put SETARGV.OBJ in the current directory. You must also disable the Extended Dictionary option by turning off No Extended Dictionary in Library in the Link Options dialog box. To link with SETARGV.OBJ outside PWB, use the /NOE linker option. For example:
cl typeit.c setargv /link /NOE
The wildcards are expanded in the same manner as in DOS commands. (See your DOS user's guide if you are unfamiliar with wildcards.) Enclosing an argument in double quotation marks (" ") suppresses the wildcard expansion. Within quoted arguments, you can represent quotation marks literally by preceding the double-quotation-mark character with a backslash (\). If no matches are found for the wildcard argument, the argument is passed literally.