PDA

View Full Version : Script to load Global Subroutines


kchernock
02-07-2007, 12:46 PM
I am trying to create a script to load Global Subroutine Steps from a network file.

Dim Load
Set app = CreateObject("VisBuildSvr6.Application")
Load = app.Project.Steps(3).load("\\Server\VBP\VisBuildPro.steps",True)

The script runs without throwing an error, but the steps are not loaded.

Using Visual Build Pro - Version 6.2a on Windows 2003 Server

Reason for script...trying to create a server image starting with just the OS and VBP installed. Therefore, trying to prevent registry entries, shortcuts and starting VBP from a command-line. So, it will be helpful to open a .bld and have the first step load Global Subroutines.

kinook
02-07-2007, 01:10 PM
Use the global Application object instead of creating another:


Application.Steps.Load "\\Server\VBP\VisBuildPro.steps", True

kchernock
02-07-2007, 01:46 PM
Thanks for the quick reply, the steps (Global Subroutines) now load correctly.