I've tried this but I always get the error "Value cannot be null. Parameter name: path".
I tried passing in the last variable also to no avail... here's my test code I was trying just to see if I could get it to work:
Code: Select all
Sub Main()
Dim Client As New VaultClientOperationsLib.ClientInstance()
Client.Init(VaultClientNetLib.VaultConnection.AccessLevelType.Client, "c:\Temp")
Client.Login("<<myserver>>", "<<myuser>>", "<<mypassword>>")
Dim Ri() As VaultRepositoryInfo
Client.ListRepositories(Ri)
For Each Bleh As VaultRepositoryInfo In Ri
If Bleh.RepName = "Default Repository" Then
Console.WriteLine("Default Repository found, Id=" & Bleh.RepID)
Client.SetActiveRepositoryID(Bleh.RepID, Client.Connection.Username, Bleh.UniqueRepID, True, False)
End If
Next
Dim Vf As VaultClientOperationsLib.VaultClientFolder = Client.Repository.Root.FindFolderRecursive("$/ETA2/Interfaces/FTI Weekend Update/")
Dim Cb As New VaultClientOperationsLib.PromptForOverwriteCallback(AddressOf Temp)
Dim Op As New VaultClientOperationsLib.OverwritePrompt(MergeType.OverwriteWorkingCopy, Cb)
Client.Get(Vf, False, True, MakeWritableType.MakeAllFilesWritable, SetFileTimeType.Current, MergeType.OverwriteWorkingCopy, Op)
End Sub
Function Temp() As Boolean
Return True ' :P
End Function
I also tried this as the client.get line from another post I saw here passing in a null for the last option... am I missing setting a path somewhere, and if so, where?:
Code: Select all
Client.Get(Vf, False, True, MakeWritableType.MakeAllFilesWritable, SetFileTimeType.Current, MergeType.OverwriteWorkingCopy, Nothing)
We're currently using 3.5.1 (4786)