I am using Team foundation system and I have requirement in which I want to copy all the checkout files to a local folder along with the same folder structure using C#. How can I do that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t know what you mean by the “checkout files”, but if you want to copy a directory you have to:
The following will enumerate all of the files and folders in a directory:
If you call that with
FullDirList("C:\MyProject\", *.*), it will enumerate all of the files.To create destination folders or copy files, change the calls to
Console.WriteLineso that they do the appropriate thing. All you should have to change in the destination file or folder names is the root folder name (that is, if you’re copying from C:\MyProject\ to C:\MyProjectCopy\, then the destination files are justf.FullNamewith the C:\MyProject\ replaced by C:\MyProjectCopy).