TFS command line - get latest version

Posted on 2009-04-18
Last Modified: 2013-11-26

I want to get latest of a project (Project1) to my work space (workspace1) using TFS command line. The command should download all items for the project.

Thanks in Advance
Question by:erwaga
    LVL 2

    Expert Comment

    tf get Project1 /recursive /noprompt


    Author Comment

    I tried what you said, but got this error;

    unable to determine the workspace
    LVL 2

    Assisted Solution

    create a bat file and copy the this content and run it
    @echo off


    @echo "completed"

    LVL 2

    Accepted Solution

    make sure your workspace name is Project1,
    it's quite possible it's something else. Go into the TFS source Control Explorer and look at the name of the "Workspace:" item on the top bar. Use this instead of Project1.

    If you only want to get latest for a specific project, create a new workspace with that particular project listed under it. Then use that new workspace name in the command line.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
    This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    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

    16 Experts available now in Live!

    Get 1:1 Help Now