INFO: Command Line Equivalent of "Build Tree" Option

Last reviewed: March 10, 1997
Article ID: Q164941
The information in this article applies to:
  • Microsoft Visual SourceSafe, 16-bit and 32-bit, for Windows, versions 4.0, 4.0a
  • Microsoft Visual SourceSafe, 32-bit, for Windows, version 5.0

SUMMARY

When you perform a GET or CHECKOUT of a Project from the Visual SourceSafe Explorer, and check the Recursive checkbox, there is an option for Build tree. The command line equivalent is:

   SS GET *.* -r –gf-

   - or -

   SS CHECKOUT *.* -r –gf-

assuming that the current directory is the directory in which you want to build the directory tree, and that you have set the current project to the project to be got or checked out.

MORE INFORMATION

*.* tells SourceSafe to operate on all the files in the project.

–r specifies that this is a recursive operation. This is the command line equivalent of checking the Recursive checkbox.

-gf- turns off the Force_Dir initialization variable for this command. When Force_Dir = No, files in subprojects are copied to subdirectories of the current directory, which are created on the fly, rather than to their working directories.

NOTE: If the initialization variable Force_Prj is set to "Yes" (that is, if "Assume project based on working folder" is checked under the Command line options menu, under the Options menu, under the Tools menu) and if the current subdirectory is the working folder for a different SourceSafe project, you may receive the error "No matching files found" or you may get or check out files from another project you were not expecting.


Additional query words: folder
Keywords : kbusage sscl
Version : 4.0 4.0a 5.0
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 10, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.