User1968999875 posted
You can use tf command line utility
This utility can be found in C:/ProgramFiles/Microsoft Visual Studio (9 or 8 )/Common7/IDE/tf.exe
To do get latest you can use
tf get itemspec [/version:versionspec] [/all] [/overwrite] [/force] [/preview] [/recursive] [/noprompt]
tf get is command
itemspec is used to get latest the specific item
/all switch is used to get all the items
/overwrite switch is used to overwrite all existing local files
/force /recursive and /noprompt are some other usefule switches which can be of your interest.
Prior to this you must have your project to be mapped with the TFS at least once.
if you are using /noprompt then it will not ask for any confimations so it will skip you asking user name and password to login to the TFS account.So use /noprompt carefully.
Hope this helps