Hi,

i am searching for a Code that can scan files on a CD/DVD-Drive very fast for a spezefic String. Does anyone have something like this?

Thanks for you help :)
Posted on 2006-07-27 02:48:37 by Dark-Angel
There's two parts to this.

First is iterating over all files on the CD - FindFirstFile/FindNextFile, recursing on directories is the common way to do this.

The next part is searching the file for a text string. If you don't need wildcards, the fastest generic way is most likely a Boyer-Moore search.

If this is for some specific need, and not as a general tool for scanning CDs, you can make things MUCH faster by building an index of the files...
Posted on 2006-07-27 05:13:57 by f0dder
hmm do you have some examples for me or some sites i can read something over?
Posted on 2006-07-27 05:24:57 by Dark-Angel
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/findfirstfile.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/findnextfile.asp
http://en.wikipedia.org/wiki/Recursion
http://en.wikipedia.org/wiki/Boyer-Moore

:-P

How much programming experience do you have? What exactly do you need? How much effort have you put into the project yourself?
Posted on 2006-07-27 05:34:03 by f0dder
My experience is beginner - mid. I need that for a little Scanner i wonna made to detect Protections/Crypter/Packer i've made some good scanner in vb und Delpi and now i wonna test it to make in asm. The last question i don't understand sorry, my english isn't so good :(
Posted on 2006-07-27 12:56:35 by Dark-Angel