Code example of adding a file to repository (C# pref)

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
mitch.wheat
Posts: 40
Joined: Thu Apr 06, 2006 10:33 pm

Code example of adding a file to repository (C# pref)

Post by mitch.wheat » Mon Apr 10, 2006 2:17 am

Can you point me in the direction of any Code examples of adding a file to repository, C# preferably, but language anything will do (as long as not COBOL!)

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

Post by lbauer » Mon Apr 10, 2006 7:40 am

You can do this with the Vault Command Line Client. It's Vault.exe and is in the same directory as the Vault GUI Client. CD to the GUI Client directory and type vault help add for documentation on "add," or to get an HTML version, type vault helphtml.

We also make available the command line client code in the download for the Vault client API. You can examine the code for examples of the various Vault commands.

http://www.sourcegear.com/vault/downloads.html
Linda Bauer
SourceGear
Technical Support Manager

Locked