Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Due to a failed TFS server I've lost my workspace and have to redownload all the source again to resync my local files with the server files. Unfortunately I have a bunch of files checked out for edit and I know from past experience that TFS doesn't cope with this situation and the only resolution option for files that are writeable is to overwrite them with the server version thus losing all my edits*

So prior to doing the "Get Latest" and overwriting all the files I need to copy out all the files that have been modified. The simplest way to do this is to check for those files that have their archive bit set.

How do I do this from the Windows Explorer search bar so I can then just do a Cntl+A followed by a Cntl+C to get all the files and then back them up somewhere outside the source tree?

* Yes I know I should check stuff in more frequently than I do

share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

It turns out that there is a "hidden" advanced search option:

attributes:

which will search for files with various attribute bits set:

attributes:16 is D
attributes:32 is A
attributes:33 is RA
attributes:34 is HA

As the source states there will be other options that allow you to find other combinations, but what worked for me was to enter:

attributes:32 *.cs

which found all the source files I'd modified.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.