I am trying to rename about 500 files within the repository using the command line and utilizing a batch file:
I have tried doing an individual file and I am not having much luck:
C:\Program Files\SourceGear\Vault Client>vault rename -host host -user user -password pass -repository "Repository" -comment "test" -commit $/software/qa/1.0.5/default.aspx $/software/qa/1.0.5/default_rn.aspx
<vault>
<changeset>
<Rename id="0" repospath="$/software/qa/1.0.5/default.aspx" newname="$/software
/qa/1.0.5/default_rn.aspx" />
</changeset>
<!-- Preparing data to begin transaction -->
<!-- Beginning transaction -->
<!-- Item $/software/qa/1.0.5/default.aspx caused the transaction to fail: The
object could not be found. It may have been deleted, moved or renamed. -->
<!-- Transaction failed -->
<result success="no" />
</vault>
Am I doing something wrong? Once this works, how can I implement it in a batch file?
multiple renames using command line
Moderator: SourceGear
Try this command:
Code: Select all
vault rename -host host -user user -password pass -repository "Repository" -comment "test" -commit $/software/qa/1.0.5/default.aspx default_rn.aspx
Jeff Clausius
SourceGear
SourceGear