MS VSS
Visual SourceSafe Home
Events & Training
Product Support
MSDN Online
Help on Microsoft Visual SourceSafe could be obtained from MS VSS home web site.
The VSS Command line answers Web Site: MS VSS Command Line.
Public Users News Groups for VSS locations: Visual Studio SourceSafe, Visual Studio .NET VSS.
Examples on VSS automation located at MS VSS Samples web site.
Access Visual SourceSafe over the Internet 3rd party tool SourceOffSite from Sourcegear.
Error Messages, Examples, Causes and Resolutions from Analyze too of Visual SourceSafe located here.
VSS Command Line Commands
CommandDescriptionExample
Get To get latest version ss Get myfile.cpp
Diff Compares the VSS file myfile.cpp to the local file myfile.cpp ss Diff myfile.cpp
Compares the version 3 VSS file myfile.cpp to the local copy of myfile.cpp ss Diff myfile.cpp -V3
Compares versions 3 and 6 of the VSS file myfile.cpp ss Diff myfile.cpp -V6~3
Compares file myfile.cpp in the VSS database against the file yourfile.cpp on your local computer ss Diff $/myfile.cpp C:\yourfile.cpp
Pin Pins the file myfile.cpp in $/my/code to version 3 ss Pin $/my/code/myfile.cpp -V3
Unpin Cancels the pinned status of myfile.cpp and myfile.h ss Unpin myfile.cpp myfile.h
Dir Shows a directory of the project $/myproject ss Dir $/myproject
Cp Makes $/myproject the current project ss Cp $/myproject
Help Shows help on the Share command ss Help Share
Label Assigns a label to the current version of the project $/myproject ss Label $/myproject
history Displays the last three items in the history list for the current project, or for file myfile.cpp, respectively ss history . -#3
ss history myfile.cpp -#3
Purge Purges (Permanently removes) the deleted file myfile.cpp ss Purge myfile.cpp
Pin Makes version 5 of myfile.cpp a member of the current project (note the command verb, Pin) ss Pin myfile.cpp -V5
Share Creates a branch from the project $/myproject ss Share $/myproject -R -E
Locate Looks for the string "myword" in all .cpp files ss Locate myfile.cpp
Paths Shows all current and broken shared file links to the file myfile.cpp ss Paths myfile.cpp
View Shows the contents of the VSS file myfile.cpp ss View myfile.cpp
FindinFiles Looks for the string "myword" in all .cpp files ss FindinFiles myword *.cpp
Properties Shows property information on the file myfile.cpp, and changes its file type to binary ss Properties -B myfile.cpp
Status Shows every file in the system that is checked out by the current user ss Status $/ -R -U
Status Shows every file in the system that is checked out by the current user ss Status $/ -R -U
Deploy Deploys a Web project ($/myproject) to the deployment location specified by the Deploy_Path initialization variable ss Deploy $/myproject
Filetype Tells whether myfile.cpp is text or binary ss Filetype myfile.cpp
Changes myfile.cpp to a binary file ss Filetype myfile.cpp -B
Rollback Rolls back myfile.cpp to version 4 ss Rollback myfile.cpp -V4
Add Adds file myfile.cpp to the current project ss Add C:\myfile.cpp
Links Shows all projects that are sharing the file myfile.cpp ss Links myfile.cpp
Checkin Checks in your changes to the file myfile.cpp ss Checkin myfile.cpp
Checkout Checks out file myfile.cpp from project $/myproject ss Checkout $/myproject/myfile.cpp
Delete Deletes the file myfile.cpp from the project $/myproject ss Delete $/myproject/myfile.cpp
Recover Undeletes the removed file myfile.cpp ss Recover myfile.cpp
Rename Changes the VSS file named myfile.cpp to yourfile.cpp ss Rename myfile.cpp yourfile.cpp
Create Creates subproject myproject under the root project $/ ss Create $/myproject
Merge Merges the file myfile.cpp in $/myproject into myfile.cpp in the current project ss Merge $/myproject/myfile.cpp
Branch Branches myfile.cpp in the current project away from its counterpart in other projects ss Branch myfile.cpp
Move Moves the project $/myproject from $/yourproject to $/ourproject, creating $/ourproject/myproject ss Move $/yourproject/myproject $/ourproject
physical Creates a file named Physical.txt that indicates all teh files that have not been deleted and are not corrupted in the VSS database ss physical $/ -r -o physical.txt

Back to the top