Partager via


Add (Command Line)

Adds new files to the Visual SourceSafe database. For definitions of the command options, see Command Options in this Help system.

Syntax

ss Add <local files> [-B] [-C] [-D-] [-H] [-I-] [-K] [-N] [-O] [-R] [-W] [-Y] [-?]

Project Rights

You must have the Add/Rename/Delete project right to use this command.

Remarks

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

Note

This command supports Universal Naming Convention (UNC) names, for which it is not necessary to specify a drive. You can type, for example, \\COMPUTER\SHARE\FILE.TXT to add File.txt from \\COMPUTER\SHARE.

When you specify *.* as the item to add, or use the -R option, the Add command checks the Relevant_Masks initialization variable in the Visual SourceSafe initialization files before operation.

Examples

Adds the file Hello.c from the c:\ directory to the current project:

ss Add C:\HELLO.C

Adds files Test.c and My Long Filename.h from the current Windows folder to the current project:

ss Add TEST.C "My long filename.H"

Note

To add a file outside the current Windows folder, use its fully qualified path (for example, D:\testproject_wf\Test.c).

Adds all files in the current folder to the current project:

ss Add *

Adds all files in the current folder and all subfolders to the current project:

ss Add *.* -R

See Also

Reference

Relevant_Masks Initialization Variable

Other Resources

Command Line Commands
Command Options