Moving multiple files in TFS Source Control?

Use the tf. Exe tool from the Visual studio commandline - it can handle wildcards.

Use the tf. Exe tool from the Visual studio commandline - it can handle wildcards: tf. Exe move Example: tf.

Exe move $/MyProject/V* $/MyProject/Archive.

Thanks, I'll give this a try! – RobS Apr 21 '09 at 22:20 It worked for me. – mqbt Dec 1 '09 at 18:50 worked for me.. I'll have to check if it moves the history as well – RobS Jul 6 '10 at 11:00 It doesn't move the history.

– Mladen Mihajlovic Dec 3 '10 at 11:41 1 For the record, it appears that in TFS 2010 the move command performs a rename which moves the history. – John Bledsoe Nov 1 '11 at 12:48.

Use rename instead of move tf. Exe rename "$/PROJECT/SharedLibs/Log4Net/*. *" "$/PROJECT/SharedLibs/3rdParty/" tf.

Exe rename "$/PROJECT/SharedLibs/ZipLib/*. *" "$/PROJECT/SharedLibs/3rdParty/" Check it out the help documentation: TFS Command Line Reference.

Probably a little late here, but I've just discovered that you can indeed move folders in TFS ( do it in Source Control Explorer - right click the folder, move )... HOWEVER, and this is a huge fail on TFS behalf, it does not move the history! So by moving a bunch of files from one location to another, you'll lose the ability to roll back to a previous version. I just learned this the hard way.

If anybody knows a way around this, i'd love to know about it. And no, "Use SVN/GIT/etc" is not a workaround (as much as i'd love to, its just not an option here). Here's a link with this problem spelled out: budurl.com/3ah5 UGH!

1 The OP asks how to move files not folders. Also, please don't ask another question in an answer. – Alex Angas Sep 27 '11 at 23:53.

You can move them in Visual Studio solution explorer.

1 Yeah the problem there is that it's like a cut and paste - you lose the file history as it tells TFS to "add" and "delete" the files rather than moving them – RobS Apr 21 '09 at 22:19.

Stick all the files that you wish to move, under a folder and then move that folder.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions