How to: Find the latest version of an item?
for /f usebackq %i in (`tf hist itemSpec /i /stopafter:1`) do @if %i neq Changeset if %i neq --------- echo %i
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
for /f usebackq %i in (`tf hist itemSpec /i /stopafter:1`) do @if %i neq Changeset if %i neq --------- echo %i