Link to home
Start Free TrialLog in
Avatar of sunilbains
sunilbains

asked on

TF Commnd and substring

All,
All,
I am writting one program task which runs TFS command . I would like to store that output to the file
<property name="tf.cmd" value="G:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\tf.exe"/>
<property name="tfArgs" value="workfold "${source.path} /workspace:betaEngineBuild  ""/>
<exec program="${tf.cmd}  failonerror="true"  output="version.txt" append="True">
                  <arg line="${tfArgs}" />
         </exec>

I just need to return TFS source path(Server) into a file (version.txt).  I can write local path which is mapped to the project but need TFS server path.
Output iam getting in version.txt is below.
Output
Workspace : Test(testuser)
Collection: sder.abc.group.com
$/sample/Branches/R03: G:\TFS\sample\R03

But i need only below one line with "TFS path" to version.txt
TFS path: $/sample/Branches/R03

My need is to have server path  $/sample/Branches/R03  written to a file version.txt.
Thanks in advance.

ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sunilbains
sunilbains

ASKER

not applicable