Mey
Mey

Reputation: 21

Batch file command to get TFS advanced get specific version with Latest version

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

Answers (1)

jessehouwing
jessehouwing

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

Related Questions