How to capture CLC Error status?

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

Moderator: SourceGear

Locked
Tri
Posts: 288
Joined: Wed Dec 22, 2004 11:10 am

How to capture CLC Error status?

Post by Tri » Tue Jun 21, 2005 2:41 pm

At the end of a CLC cmd line call, the status is returned in the console in a flow of XML text. The last line say:

<result success="yes" /> (or "no")

I would like to capture this text either in an environment variable or having the ERROLEVEL value set, in order to do some branching in the *.BAT.

Something like:

Vault.exe ... etc ...
IF ERRORLEVEL 1 GOTO FAILED

It is possible?

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Tue Jun 21, 2005 2:56 pm

Vault.exe should already return an error code that corresponds to the success or the failure of the command.

Locked