How do I check out files to an alternative directory using STCMD?

0 Likes

Problem:

How do I check out files to an alternative directory using STCMD?

Resolution:

  • Product Name: Star Team
  • Product Version: 2005 R2
  • Product Component: STCMD
  • Platform/OS Version: All

Question:

How do I check out files to an alternative directory using STCMD?


Answer:

In order to check out files to an alternative directory you need to use the -fp parameter in the command line. Below is an example of how to use this:

stcmd co -p ":@localhost:/Test Project/Test Project" -is -fp "C:\StarTeam Rep\Alt"

- replace with your user name
- replace with your password

- replace with the port number
Test Project/Test Project - replace this with the following Project/View/Folder

The -is flag will be used to imply that all sub-folders should be included in the operation.
The -fp flag is used to over-ride the default working directory. So the example specifies that the files should be checked out to "C:\StarTeam Rep\Alt".

Please refer to the StarTeam User"s Guide for more information on using this parameter and the syntax of specifying alternative directories.


Author: Tom Przezdziecki

Old KB# 27592
Comment List
Related
Recommended