"Recursive" C wildcards under NT
Posted on 2004-08-01
I have a program for win XP, whos syntax is something like
lcfs [options] <indir> <files..>
Where the "files" things are multiple wildcard strings.
Now most Unix Shells would replace "*.bmp" in the files section with all files matching this, but NT doesnt seemt to do so.
But IF it would, what I read will work is you link a certain file or something, I'd have problems with my recursive option(which would, of course, search subdirectorys, too), and the shell wouldnt do that, right?
I thought I'd do something like
if(file is a direcory) listfunction(directoryname)
else if(filename matches wildcard from <files>) ..
But I dont know how to do check if a string matches a wildcard, any suggestions or a better way to accomplish this?
Thanks in advance,