Taking control on SourceOFfSite from our source code

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

Moderator: SourceGear

Post Reply
DiscoTonio
Posts: 3
Joined: Wed May 17, 2006 9:35 am

Taking control on SourceOFfSite from our source code

Post by DiscoTonio » Wed May 17, 2006 9:41 am

Hi all

Is it possible to pilot SourceOffSite from our code like a COM application (we can do so with EXCEL or Visual Source Safe) or if not, is it to make some dos way command lines to do some
- ckeck in
- check out
- undo check out
- get the status of a file
...

Thanks for your answer...

Antoine, de Bordeaux...

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

Post by lbauer » Wed May 17, 2006 2:48 pm

We don't have COM, but we do have a command line client that can be used in scripts.

The SOS 4.1.2 command line client is called soscmd.exe and is in the SOS GUI Client directory.

The documentation is called soscmd.txt.

See this link for information, plus the 3.5.3 soscmd.exe, in case you are using SOS 3.5.x.

http://support.sourcegear.com/viewtopic.php?t=1266
Linda Bauer
SourceGear
Technical Support Manager

DiscoTonio
Posts: 3
Joined: Wed May 17, 2006 9:35 am

Post by DiscoTonio » Wed May 17, 2006 3:01 pm

Thanks a lot :)

I read the file soscmd.txt and I will be able to do some check in/out with this. But I couldn't find an exemple. Do you have some example of the syntax for one command line because I don't find the txt file very clear.

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

Post by lbauer » Thu May 18, 2006 8:04 am

Look at the end of the documentation for examples.

Here's one from soscmd.txt:

Code: Select all

Example 3: Check out a file
---------------------------
This checks out the latest version of the file "source1.h" and places 
it into the working directory set in the GUI Client.

soscmd -command CheckOutFile -server garcon:8080 -name joe 
-password camel -database c:\VSS\srcsafe.ini 
-project $/projects/apollo/src -file source1.h
-soshome "C:\Documents and Settings\<user>\Application Data\SourceGear\SOS"
Linda Bauer
SourceGear
Technical Support Manager

DiscoTonio
Posts: 3
Joined: Wed May 17, 2006 9:35 am

Post by DiscoTonio » Thu May 18, 2006 8:29 am

Arf, I didn't look up until the end of the .txt file. Sorry for this last question ... (and thanks for your answer and your patience by the way).

Antoine

Post Reply