I would like to build some short scripts to do simple/repetitive jobs. I thought that I would do this through cmd or *.bat files. Are there any examples or any books that I might reference to accomplish this.
Further, the help given for the commands in cmd window is limited and I am not sure what is needed in each field and would like more help on this. Anything is appreciated.
thanks
Command Line Interface through cmd Window, or in script
Moderator: SourceGear
Have you considered the use of a file and the -BATCH option with the command line?
Something like:
vault.exe BATCH vaultcmd.clc -SERVER VaultServer -REPOSITORY repository -USER user -PASSWORD pass
where vaultcmd.clc is full of your Vault comands:
Something like:
vault.exe BATCH vaultcmd.clc -SERVER VaultServer -REPOSITORY repository -USER user -PASSWORD pass
where vaultcmd.clc is full of your Vault comands:
Code: Select all
GET $/dir
CREATEFOLDER $/dir/A
CREATEFOLDER $/dir/A/B
COMMIT
ADD $/dirA/B c:\file1.txt
COMMIT
Jeff Clausius
SourceGear
SourceGear
BATCH command line
Thanks, that is very helpful.
Is there any place that has multiple examples of files like this? Any other documentation just a collection of previously built files?
Regards
AZ
Is there any place that has multiple examples of files like this? Any other documentation just a collection of previously built files?
Regards
AZ