<vssadd>

Used to add files to a Visual SourceSafe database. If the file is currently in the SourceSafe database a message will be logged but files will continue to be added.

This version does not support recursive adds. Only adds in the root directory will be added to the SourceSafe database.

Parameters

AttributeTypeDescriptionRequired
commentstring Places a comment on all files added into the SourceSafe repository. Not Required. False
dbpathstring The absolute path to the folder that contains the srcsafe.ini. Required. True
pathstring The source safe project or file path, starting with "$/". Required. True
userstring The user id to use to login to the Source Safe database. Required. True
failonerrorboolFalse
ifboolFalse
passwordstring The password to use to login to the Source Safe database. False
unlessboolFalse
verboseboolFalse
versionstring A version of the path to reference. Accepts multiple forms, including the label, version number, or date of the version. If omitted, the latest version is used. False

Nested Elements:

<fileset>

List of files that should be added to SourceSafe. Note: Recursive adds not supported.

</fileset>

Examples

                <vssadd dbpath="C:\SourceSafeFolder\srcsafe.ini" user="user1" password="" path="$/Somefolder">
                  <fileset basedir="C:\SourceFolder\">  
                    <includes name="*.dll"/>
                  </fileset>
                </vssadd>