Code: Select all
Getlabel usage: vault.exe GETLABEL [options] repositorypath label [labelpath]
For instance, if File.cs is shared between Subfolder A and Subfolder B under FolderA, this command would fail with a "FailInvalidLabel" error:
Code: Select all
vault GETLABEL -host myserver -user user -password mypassword -repository Myrepository $/MyProject/FolderA/SubfolderB/Somefolder/File.cs MyLabel -labelworkingfolder C:\Workingfolder
"Labelpath" should be the path starting at the folder where the label was applied, (not at $/ unless the label was applied at root). So if the label was applied at FolderA, the labelpath would be "FolderA/SubfolderB/Somefolder/File.cs MyLabel." This command should succeed:
Code: Select all
vault GETLABEL -host myserver -user user -password mypassword -repository Myrepository getlabel $/MyProject/FolderA/SubfolderB/Somefolder/File.cs MyLabel -labelworkingfolder C:\Workingfolder labelpath FolderA/SubfolderB/Somefolder/Files.cs