I would like to add both directories and files into vault through a batch file. Is there a way to do this?
Example:
$/dir1/file1
$/dir1/file2
$/dir2/file1
etc ...
dir1 & dir2 don't exist in vault as well as file1 and file2
I have tried to use the add command per dir and per file, but only the first line went into the changeset.
adding directories and files using the command line
Moderator: SourceGear
How would I implement the same thing if the files are going to different locations in vault. The example you have given places all the files residing in different locations on the local box in the same location in vault, however, if the files need to go to different locations in vault, would I need to create a seperate lines and how would it all work if I wanted to have the checkin use the same submission number with the scenerio I have given above? Can you please show an example?
Don't include "vault" or the connection info in the batch file itself.
So, your CLC call should be:
vault -host host -name name -password pw -repository rep batch batch.txt
And the commands in the batch file (one per line, no extra lines) should be:
add -commit $/repfolder c:/temp/file
add -commit $/test1 c:/Temp/folder
So, your CLC call should be:
vault -host host -name name -password pw -repository rep batch batch.txt
And the commands in the batch file (one per line, no extra lines) should be:
add -commit $/repfolder c:/temp/file
add -commit $/test1 c:/Temp/folder