Kinook Software Forum

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-07-2007, 11:46 AM
kchernock kchernock is online now
Registered User
 
Join Date: 02-14-2005
Location: California
Posts: 2
Script to load Global Subroutines

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\VisBuildPr o.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.
Reply With Quote
  #2  
Old 02-07-2007, 12:10 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,015
Use the global Application object instead of creating another:

Code:
Application.Steps.Load "\\Server\VBP\VisBuildPro.steps", True
Reply With Quote
  #3  
Old 02-07-2007, 12:46 PM
kchernock kchernock is online now
Registered User
 
Join Date: 02-14-2005
Location: California
Posts: 2
Thanks for the quick reply, the steps (Global Subroutines) now load correctly.
Reply With Quote
Reply


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 12:04 PM.


Copyright © 1999-2023 Kinook Software, Inc.