Add
Return to Introduction  Previous page  Next page
Adds new files into the TeamCoherence Repository

Syntax

tc Add <local files> [-C] [-F] [-O] [-R] [-T] [-V] [-Y] [-?]  
 
Note for Linux Users: When specifying the <local files> parameter, enclose each filespec in double quotes (")

Examples
 
Adds file HELLO.PAS to the current folder:
 
tc Add C:\HELLO.PAS  

Adds files TEST.PAS and MY LONG FILENAME.DPR to the current folder:
 
tc Add TEST.C "My long filename.H"  

Adds all files in current directory to the current folder:
 
tc Add *  

Adds all files in current directory and all subdirectories to the current project:
 
tc Add * -R  

The following table describes the command-line options available with this command.

Option
Description
-C
Use the same comment for all added files
-F
Specify flags to modify the behaviour of Add
-O
Specify command output parameters
-R

Recursively add an entire directory tree, creating a folder list in TeamCoherence
-T
Causes the command to terminate and return an error code when an error occurs.
-V
Assign a Version Label to the checked in file
-Y
Specify a Username and/or Password
-?, -H
Request online help for a command


Remarks

You can specify files on any drive and directory, and add that file to the current TC folder. To add a directory recursively, that is, to add all of its subdirectories and files, specify a directory instead of a file name and use the -R option.

Note This command supports Universal Naming Convention (UNC) names: it's not necessary to specify a drive. You can type, for example, \\COMPUTER\SHARE\FILE.TXT to add the FILE.TXT file from \\COMPUTER\SHARE.  


 


© 1995-2011 Quality Software Components Ltd