TF Commnd and substring

Posted on 2011-10-04
Last Modified: 2013-11-26
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}" />

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.
Workspace : Test(testuser)
$/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.

Question by:sunilbains
    LVL 96

    Accepted Solution

    I have no idea what you are working with...

    Author Closing Comment

    not applicable

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Suggested Solutions

    Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
    Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (…
    The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
    THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now