HOWTO: Specifying a VSS Database Using the Command Line

Article translations Article translations
Article ID: 240052 - View products that this article applies to.
This article was previously published under Q240052
Expand all | Collapse all


If you have multiple Microsoft Visual SourceSafe (VSS) databases, and are using the VSS command line, you can use the SSDIR environment variable to point to the required database.


Each VSS database has its own Srcsafe.ini file. The VSS command line (SS.exe) needs to locate a Srcsafe.ini file in order to determine which database it uses. In most cases Ss.exe is in the VSS\Win32 directory and by default will find a Srcsafe.ini file in the VSS directory. If you want Ss.exe to use a different Srcsafe.ini, use the following command:
SET SSDIR=<path to srcsafe.ini>\ 
For example:
SET SSDIR=C:\Program Files\Microsoft Visual Studio\Common\VSS
SET SSDIR=\\vss_server\vss_share
NOTE: There must not be spaces around the "=" character. Also note that if you use the SET SSDIR command in a Command Prompt (DOS) window, the SSDIR setting is not maintained after the window is closed.


For additional information, see the following article or articles in the Microsoft Knowledge Base:
100843 Environment Variables in Windows NT


Article ID: 240052 - Last Review: August 28, 2002 - Revision: 1.0
  • Microsoft Visual SourceSafe 4.0 Standard Edition
  • Microsoft Visual SourceSafe 4.0a
  • Microsoft Visual SourceSafe 5.0 Standard Edition
  • Microsoft Visual SourceSafe 6.0 Standard Edition
kbhowto kbcommandline KB240052

Give Feedback


Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from