Share via


How to: Perform a Simple Visual SourceSafe Command

This topic describes how to run a basic command from the Visual SourceSafe command line. By default, Visual SourceSafe commands can only be performed from the database directory.

To run a Visual SourceSafe command:

  1. Set the SSDIR and SSUSER environment variables as described in Setting Database Options.

  2. On your desktop, click Start, then Run.

  3. Type "CMD", and then click OK.

  4. Type "<drive>:", substituting the letter for the drive on which Visual SourceSafe is installed, and then press ENTER.

  5. Use the CD command to navigate to the database directory for the Visual SourceSafe installation, and then press ENTER.

  6. Type "ss <command>". For example, enter "ss Create $/test_project" and press ENTER. Note that a new Visual SourceSafe project folder is created in your default Visual SourceSafe database.

To enable Visual SourceSafe commands in any directory or from the Run dialog box:

  1. On your desktop, right-click My Computer and then click Properties.

  2. In the System Properties dialog box, click Advanced, then Environment Variables.

  3. Under User variables for <username>, click New.

  4. In the New User Variable dialog box, in the Variable name box, type "Path".

  5. In the Variable Value box, type "%PATH%;<Visual SourceSafe directory>", where Visual SourceSafe directory is the directory containing Visual SourceSafe program files, and then click OK.

  6. In the New User Variable dialog box, in the Variable name box, type "SSDIR".

  7. In the Variable Value box, enter the directory containing the Srcsafe.ini file for the database, for example, C:\Program Files\Microsoft Visual SourceSafe 2004, and then click OK.

  8. If necessary, use the User variables for <username> section to define the SSUSER and SSPWD environment variables.

See Also

Concepts

Setting Database Options