Kinook Software Forum

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

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-09-2015, 12:15 PM
HippyCraig HippyCraig is offline
Registered User
 
Join Date: 07-27-2006
Location: Philly
Posts: 211
Script modifications

I am using VBP to modify a bunch of scripts, I am trying to find a specific step and make some modifications to it, especially using encrypted passwords. Below is what I have but I am not sure about the password property making sure that the password is correct and that the encryption flag is set correctly in the BLD file.

Code:
Dim objApp, objStep, iNewIndex

Set objApp = CreateObject("VisBuildSvr.Application")
objApp.Project.Load "%PROCFILES_FULLPATH%"

'Set Find Step
For Each objStep in objApp.Project.Steps(vbldStepMain)
	If objStep.Name = "Map Drive to Shared Output" and objStep.Action = "Map Drive" Then
		objStep.Checked = True
		objStep.Property("Password") = "SOME_ENCRYPTED_PASSWORD"
		objStep.Property("Username") = "DOMAIN\USER"
		objStep.Property("buildfailsteps") = CBool(0)
		Exit For
	End If
	iNewIndex = iNewIndex + 1
Next
Reply With Quote
 


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 09:40 AM.


Copyright © 1999-2023 Kinook Software, Inc.