BATCH file with multiple HISTORY commands

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
emartin24
Posts: 3
Joined: Sat Apr 28, 2007 7:44 am

BATCH file with multiple HISTORY commands

Post by emartin24 » Sat Apr 28, 2007 8:02 am

I'm playing with the VaultCmdLineClient API. When I run the following:

vault.exe BATCH -username x -password x -host x -repository -x batch.txt

batch.txt has the following:
history $/folder1
history $/folder2

However, I only get the results for $/folder1

I added a Console.WriteLine in while (null != (strCmd = cmdlineargs.BatchTextReader.ReadLine())) in the Main method. What I see is:
BATCH CMD: history $/folder1
BATCH CMD: history $/folder2
<vault>
<history>
...

With the XML all being for folder1. Is there something I need to change? Is the history command not supported in batch mode?

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Mon Apr 30, 2007 4:16 pm

I tried this with the Command Line Client for Vautl 3.5.2. It returned history on both.

Try the batch file with just "history $/folder2." Does it return history on Folder2?

If not, are there any error messages?

If it does return history, perhaps the batch command is running into some sort of row limit when you run both history commands.

Try adding the option -rowlimit 0, which eliminates any rowlimit.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply