• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • Last Modified:

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.

0
sunilbains
Asked:
sunilbains
1 Solution
 
Bob LearnedCommented:
I have no idea what you are working with...
0
 
sunilbainsAuthor Commented:
not applicable
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now