Hi
I want to use the "BATCH" command but cannot find a decent example of how to use it:
Here is my command that works
@echo SHARE "<>" "<>" -commit |"C:\Program Files (x86)\SourceGear\Vault Client\vault.exe" BATCH - -host "<>" -user "<>" -repository "<>"
How do I now specify another command for the same session? HELP and KB were of no use.
Thanks
Craig
Command Line - BATCH
Moderator: SourceGear
Re: Command Line - BATCH
You need to put your commands into a text file, then run your batch command but at the end put the name of the file that holds the other commands.
For example, vault.exe BATCH -host myhost -user myuser -password mypassword -repository "Initial Repository" abatch.txt
Then in my text file is something like:
GET $/Documents/Folder2
CHECKOUT $/Documents/Folder2/Test2c.txt
DELETE DetectThis2.txt
COMMIT $
For example, vault.exe BATCH -host myhost -user myuser -password mypassword -repository "Initial Repository" abatch.txt
Then in my text file is something like:
GET $/Documents/Folder2
CHECKOUT $/Documents/Folder2/Test2c.txt
DELETE DetectThis2.txt
COMMIT $
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support