This documentation is archived and is not being maintained.

Add (Command Line)

Visual Studio 2005

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

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

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

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.

NoteNote

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.

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"
NoteNote

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
Show: