Reference Information. Some Windows command-line programs allow you to use *.* In your first argument:
myprogram *.*
and it will automatically cycle through all the files in the directory.
Some others are not, therefore a batch cycle is required:
for %%c in ("*.*") do myprogram "%%c"
Question: Is there a standard way (defined in C or provided by the operating system?) To allow *.* Or *.txt in the argument so that it automatically processes the corresponding files
int main(int argc, char *argv[]) { FILE *kf; "for fname in argv[1]"
I wanted to check if there is a solution for this before flipping my own (reinvent the wildcard expansion wheel using FindFirstFile, etc.).
source share