I want to build a step only if a file contains certain data.
For non-binary files, I can use a condition like this:
Quote:
Build only if macro or expression
[vbld_GetFileContents("MyFile.txt")]
Contains
xxx
|
But this doesn't work for binary files, especially if they contain nul-characters. The expression will only evaluate to the file's contents up to the first \0 byte.
Is there a way to pull this off with binary files?
Bonus question: instead of containing a literal string (like 'xxx' in the above example) is it possible to check for a regular expression match?