Reputation: 21
Please let me know the Batch file command to "get TFS advanced get specific with latest version"
Advanced --> Get Specific Version --> Type "Latest Version" --> Overwrite --> Get
Upvotes: 2
Views: 603
Reputation: 115037
You can force a get using:
tf vc get /noprompt /recursive /overwrite /version:T path\to\workspace\root
To restore deleted files you can add /all
or replace /overwrite /all
with /force
.
See also: https://www.visualstudio.com/en-us/docs/tfvc/get-command
Upvotes: 3