Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

To create shelvestet from set of files I use following command:

tf shelve /comment:myComment myShelveName /recursive 
/noprompt /replace /move "firstFile" "secondFile" ... "lastFile"

If all of the "firstFile, .. lastFile" are checked out then command succeeds - if any of them is not checked out then command fails.

Solution to avoid such failure is to checkout all the listed files regardless to whether they are changed or not. Another option would be to filter the names of the somehow. And you may find out more.

But, in general, is there some option to successfully use tf shelve on set of files where only some of them are checked out?

share|improve this question

No, there is no way to shelve files you have not first marked as changed. If you need such a feature frequently, you could write a batch script to first execute tf edit then tf shelve.

share|improve this answer
Actually this is what I'm doing..but I was looking for some way to optimize a bit.. – rudolf_franek Aug 17 '12 at 12:39

Your Answer


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.