title: How can I find all of the labels for a particular TFS project sub-folder?
body: <p>Assume there is a TFS project <code>Project</code> with the subfolders <code>trunk</code> and <code>1.0</code>. <code>trunk</code> contains the latest version of the application code for this project and <code>1.0</code> contains the code for the same application for the released version of the same name.</p>
  
  <p>There are labels for both sub-folders and all of the labels include files in only one of the sub-folders. [You could also assume that the labels are recursive on a specific (maximum) changeset for all of the files in the entire sub-folder too if that simplifies your answer.]</p>
  
  <p>How can I create a list of labels for one of these sub-folders, using Visual Studio, the TFS <code>tf.exe</code> command line tool, or any other tool or code that is publicly (and freely) available.</p>
  
  <p>Note – I've written T-SQL code that queries the TFS version control database directly to generate this info, but I'm curious whether there are 'better' ways to do so.</p>