View Single Post
Old 01-18-2006, 05:04 PM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,758
Regarding environment variables, you could add a Run Script step at the beginning of the project to iterate over all environment variables, storing them in temporary macros. Although you probably don't want to do this for all variables, so you'd need to filter the list in some way. In VBScript, something like this:

Set shell = CreateObject("WScript.Shell")
Set env = shell.Environment("PROCESS")
For Each var In env
' logic here to parse the name/value out and
' determine if this variable should be processed
vbld_TempMacros.Add name, val

Regarding reading from a file, you could again use a Run Script step to iterate over the file contents and assign the values to temporary macros. Something like the attached sample.
Attached Files
File Type: bld readtempmacros.bld (1.3 KB, 821 views)
Reply With Quote