Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8388727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:32:06+00:00 2026-06-09T18:32:06+00:00

I assume that this: tf.exe get $/project /recursive …needs this weird workspace mapping, known

  • 0

I assume that this:

tf.exe get $/project /recursive

…needs this weird workspace mapping, known TFS server and such.

Is there any way I could do this simplest thing: go connect to this TFS server using this set of credentials, get latest source code for this project and put it here? All from the command line.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T18:32:08+00:00Added an answer on June 9, 2026 at 6:32 pm

    Firstly, are you wanting a copy of the controlled files that are no longer under source-control (such as a SVN export) or are you still hoping to work with the files and TFS?

    Option 1: No Binding at all

    If you simply want a copy of the latest files and no ‘binding’ to TFS, you’re going to have to do a little work yourself. Leaving aside credentials ([/login:username,[password]] parameter to many command line methods).

    1. Use the TF command to get a list of the files: tf dir "$/YourSolution" /Recursive > files.txt
    2. Process files.txt with some clever batch file (or use a scripting language):
    3. Read lines starting with $/ and this is the directory, create the directory in your destination (remove first three characters and the last character, a colon).
    4. Read the next lines (until blank or end of file), each of these represents a file in the directory discovered in step 3. Assuming you have the file in a variable %file% and directory %dir%, then issue the following command (for each file in that directory):

    tf view "$/%DIR%/%FILE%" "/output:Your-Target-Path/%DIR%/%FILE%"

    or if you’re happy with the current directory as the target:

    tf view "$/%DIR%/%FILE%" "/output:%DIR%/%FILE%"

    Note, you need the %DIR%/%FILE% in the output part or all files will be dumped in to the same directory.

    NOTE: this is likely to a be VERY high bandwidth and slow operation!

    Option 2: Temporary Mapping

    1. Create a temporary workspace: tf workspace /new /collection:<URL_TO_SERVER> /permission:Private (note, this will prompt, there is a no-prompt option but determining a name for the workspace is left as an exercise)
    2. Make a directory for files, e.g. LOCALDIR
    3. Create a mapping for your folders: tf workfold /map "$/SERVER_DIR" "LOCALDIR"
    4. Go into LOCALDIR
    5. Get the files tf get . /Recursive

    At this point you should now have all of the files and if you wanted you also have a binding with TFS so you could commit changes. Alternatively, you can now copy the content elsewhere and break the mapping/workspace. Using the correct command line variants of tf workfold /unmap and tf workspace /delete will unmap your workfolder and delete the workspace.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want build a sketch pad app on iPhone, I assume that this type
Assume that I have this piece of code: @interface Foo : NSObject { Bar
While I would assume that in VC++ this would be a no brainer, it's
Assume that I have 2 .php files : index.php and ajax.php This is index.php:
For this question, let us assume that we will want to show the face
This is for Excel and VBA. Assume that BondClass has been properly defined in
(For the purposes of this question, let us assume that one is intentionally not
This is a question about generic c++ event driven applications design. Lets assume that
I'm a bit confused as to why this isn't working; I assume that because
Assume I have a class that looks like this: class Sample { public string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.