PDA

View Full Version : Team Foundation DIR


chrisck
04-23-2009, 12:43 PM
I need to do a DIR of some Team Foundation Server projects and have the results piped out to text files. Currently when I do the DIR it returns the information to the Output window.

If I use the 'Additional Command-line Options' under the 'Options' tab, and type in a > some.txt, it only gives an error because this inserts this command as a switch and not at the end of the command.

How can I get the output directed to a specific file?

Thank you!

kinook
04-23-2009, 01:35 PM
On the Advanced tab, enter %DOSCMD% in the Command to run before main command field so that the tf command runs under a cmd shell (enabling redirection).
http://www.kinook.com/VisBuildPro/Manual/programadvancedtab.htm

chrisck
04-23-2009, 04:38 PM
Thank you for the reply!

I was actually wondering about the Team Foundation Server 'Action' in Visual Build. Is there a way to get this functionality using the built in Team Foundation Action? I already have it working using the 'Run Program' Action, but was looking to have all of my TFS steps done thru their respective Visual Build Action.

Thank you.

kinook
04-23-2009, 04:48 PM
Yes, that option is available on all Run Program-derived actions (including Team Foundation).
http://www.kinook.com/Forum/showthread.php?threadid=3953