multiple file scan filter
-
Is there a way in c++ that I can do a file scan across a harddrive with multiple filters at once? Like search my HD for files that contain the filters *abc*|*def|rty| etc etc. I may have quite a few of them and don't want to keep scanning over and over for each one. I would prefer to do this in C#, but I'm fairly sure you can't. I can put a managed wrapper around some c++ if it will do this. TIA
-
Is there a way in c++ that I can do a file scan across a harddrive with multiple filters at once? Like search my HD for files that contain the filters *abc*|*def|rty| etc etc. I may have quite a few of them and don't want to keep scanning over and over for each one. I would prefer to do this in C#, but I'm fairly sure you can't. I can put a managed wrapper around some c++ if it will do this. TIA
Either you do the scan several times, or you look for all files, filtering it yourself - so, no can do.
-
Either you do the scan several times, or you look for all files, filtering it yourself - so, no can do.
-
Is there a way in c++ that I can do a file scan across a harddrive with multiple filters at once? Like search my HD for files that contain the filters *abc*|*def|rty| etc etc. I may have quite a few of them and don't want to keep scanning over and over for each one. I would prefer to do this in C#, but I'm fairly sure you can't. I can put a managed wrapper around some c++ if it will do this. TIA
You could parse the filter into its individual patterns, sending each one to a separate thread. Each thread would then report back to the primary thread with its findings. Or, for each file on the target drive, see if it matches any of the patterns in the filter. I did this once back about 11 years ago. It was a DOS-based utility and was a very good learning exercise.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen