Command-line arguments containing wildcard characters can be expanded to all the matching file names, much the same way DOS expands wildcards when used with commands like COPY. All you have to do to get wildcard expansion is to link your program with the WILDARGS.OBJ object file, which is included with CodeGear C++.
If no matching files are found, the argument is passed unchanged. (That is, a string consisting of the wildcard mask is passed to main.)
Arguments enclosed in quotes ("...") are not expanded.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|