We have a batch file that does the following couple of commands:
Code: Select all
"VAULT.EXE" -host "MYSERVER" -user "%USERNAME%" -password "MYPASSWORD" -repository "MYREPOSITORY" CHECKOUT -exclusive -merge later -performdeletions removeworkingcopyifunmodified "MYFILE"
IF %ERRORLEVEL%==-1 GOTO ERROR
Code: Select all
<vault>
<!--Check out failed for $/folder/myfile.xls: The file has been exclusively locked.-->
<result>
<success>True</success>
</result>
</vault>