Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-06-2011, 10:13 AM
Rogier Rogier is online now
Registered User
 
Join Date: 09-09-2004
Location: the Netherlands
Posts: 40
Binary file containing string (or regexp) as step condition?

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?
Reply With Quote
 

Tags
binary , condition , file contains , regular expression , step


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 01:52 AM.


Copyright © 1999-2023 Kinook Software, Inc.