TFS command line - get latest version


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
Who is Participating?
clinton_cunninghamConnect With a Mentor Commented:
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.
tf get Project1 /recursive /noprompt

erwagaAuthor Commented:
I tried what you said, but got this error;

unable to determine the workspace
abhilekhaConnect With a Mentor Commented:
create a bat file and copy the this content and run it
@echo off


@echo "completed"

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.