Reputation: 3064
I'm trying to add the following folder tree to TFS:
C:\TFS\folder1
C:\TFS\folder1\folder2
C:\TFS\folder1\folder2\folder3
C:\TFS\folder1\folder2\folder3\test.txt
In the above example the folder "C:\TFS" is a mapped TFS working folder. I issue the following commands from the console:
cd C:\TFS
tf add folder1 /recursive
After this command has finished my repository contains the following tree (as pending changes):
$/folder1
$/folder1/folder2
As you can see "folder3" and the text file "test.txt" below are completely missing! Why?
Update: I've submitted this as a bug to Microsoft:
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=423279
Upvotes: 0
Views: 1920
Reputation: 65516
worked for me.
c:\Temp>md Test\1\2\3\4\5
c:\Temp>dir test /s/b
c:\Temp\test\1
c:\Temp\test\1\2
c:\Temp\test\1\2\3
c:\Temp\test\1\2\3\4
c:\Temp\test\1\2\3\4\5
c:\Temp>cd test
c:\Temp\Test>tf add 1 /recursive
1
1:
2
1\2:
3
1\2\3:
4
1\2\3\4:
5
c:\Temp\Test>
Same if I do it from Test or above Test directory
Upvotes: 0
Reputation: 116
from microsoft the basic command goes as follows:
tf add itemspec [/lock:(none|checkin|checkout)] [/type:filetype]
[/noprompt] [/recursive] [/login:username,[password]]
I typed in the following command and it worked fine:
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\tf.exe" add itemspec /r "where to add to"
you run the command from the folder you want to copy files and in the command under "where to add to" you type the destination
Upvotes: 0