How to get the list of currently checked out files in TFS?

One of the most common question asked by clients is how to fetch the list of currently checked-out files under any TFS project? In VSS, there use to be UI context menu option which retrieves the list of checked out files, but there is not like that in VS 2005 or VS 2008 with TFS.

 

Alternative is to use following command line statement to fetch all checked-out files for any specific project on the TFS server.

 

tf.exe status $/[PROJECTNAME] /user:* /s:https://[TFS SERVER NAME]:[PORT] /recursive > [PATH TO SAVE THE OUTPUT]

 

Example,
tf.exe status $/PROJECTNAME /user:* /s:https://paapp1216:8080 /recursive > c:\checkedout.txt

 

Personally I have added this command into the "External Tools..." list of VS.