Thread: Version numbers
View Single Post
  #2  
Old 06-15-2007, 12:47 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,025
Re: Version numbers

Quote:
Originally posted by rfktp
How does visual build handle version numbers for builds?
However you want it to. Versions can be stored in macros, set/incremented in tool actions (Make VC6, Make VS.NET, etc.), via Run Script, Set Macro actions, passed on the command-line, etc.

Quote:
Also is there a way to have visual build replace pieces of text in a text files.
http://www.visualbuild.com/Manual/filereplaceaction.htm

Quote:
Finally is there a way to retrieve a piece of text from a text file using vbscript?
To read in the file contents:
s = vbld_FSO().OpenTextFile("c:\path\to\file.ext").Rea dAll

Then use InStr or RegExp to locate the desired piece.
http://www.w3schools.com/vbscript/func_instr.asp
http://www.devx.com/vb2themax/Tip/18636
Reply With Quote