View Single Post
  #2  
Old 02-19-2008, 09:59 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,015
Create a .macros file containing the password macros, either by manually creating a file in this format:

Code:
<?xml version='1.0' encoding='utf-8'?>
<macros version='6'>
  <macro name='PWD1'>
    <value>macro value here</value>
  </macro>
  <macro name='PWD2'>
    <value>macro value here</value>
  </macro>
</macros>
or by adding project macros to a new .bld file, and adding+building a Run Script step with code like this to create the macros file:

Project.Macros.Save "c:\path\to\passwordfile.macros"

Then, in myproject.bld, use a Run Script step with code like this to merge the password macros file into temporary macros:

Application.Macros(vbldMacroTemporary).Load "c:\path\to\passwordfile.macros"

http://www.visualbuild.com/Manual/macroscollection.htm
http://www.visualbuild.com/Manual/runscript.htm
Reply With Quote