Team Coherence Command-line Utility
Return to Introduction  Next page
This help file indroduces and describes the Team Coherence Command-line utility: TC.exe The command line tool allows you to execute several Version Control and maintenance tasks using batch files and macros.

Carrying Out Commands on the Command Line

You can start a command shell from Windows 95 or Windows NT and type Team Coherence commands from there. To do this, the Team Coherence Client bin folder must be on your path (set with the PATH environment variable).

You can also use the Run command on the Windows Start menu to run a specific command. For example, you can type tc Get *.* to get all files in the current project/folder.

Command-Line Syntax

Command-line commands have the following general syntax:

   tc command [one or more items] [one or more options]

What an item is depends on the command. For instance, for the Get command, an item is a Team Coherence file or project; for the Add command, an item is an operating system file.

In almost all cases where you can specify an item to act on, you can specify more than one item. For instance, any of the following are valid ways of executing the Get command:

   tc Get HELLO.PAS  
   tc Get Test.pas TestProj.dpr APackage.dpk  
   tc Get *.pas *.dpr  
   tc Get *.*  

The command line is case-insensitive, that is, the command tc Get HELLO.PAS can also be typed as tc get Hello.pas.


Under Linux, because of a limitation of the installer, the commandline call is set to tcx. If you want, the script can be renamed to tc to match this help file.

Current Project/Folder

The current Project/Folder is maintained between TC sessions. Therefore, the next time you start the command line utility the position in the hierarchy is the same as the last time you executed the command.

File Groups

When listing files in a project or folder, you may not see all files that are archived. If file groups are enabled in the Team Coherence repository you are connected to, only the main file of each grouping will be displayed. Similarly, when adding files to a folder, only the main file of each grouping will be displayed. The associated files are automatically added.

For more information on File Groups, see the main Team Coherence help file: TCVcs.hlp


© 1995-2018 MCN Software