Visual SourceSafe
Get (Command Line)

Retrieves read-only copies of the specified Visual SourceSafe files or projects to your working folder. For definitions of the command options, see Command Options in this Help system.

Syntax

ss Get <items> [-G] [-H] [-I-] [-N] [-O] [-R] [-V] [-W] [-Y] [-?]
Project Rights

You must have the Read project right to use this command.

Remarks

By default, the Get command retrieves the most recent version of the files or projects you specify. However, you can get earlier versions as well by using the -V option. See -V Option (Command Line).

Used recursively on a project (-R option), this command retrieves all the files in the project and its subprojects, and places them in subfolders of the same name in your working folder. If you set the initialization variable Force_Dir to Yes in your Ss.ini file, the recursive Get command will place subprojects in their own working folders.

Examples

Retrieves a read-only copy of the file Test.c in the current project:

ss Get TEST.C

Retrieves a read-only copy of the file Test.c that is labeled Final:

ss Get -VlFinal TEST.C

Retrieves read-only copies of all the files in the current project:

ss Get *

Retrieves read-only copies of all the files in the project $/WORD, and all its subprojects:

ss Get $/WORD -R
See Also

Reference

-V Option (Command Line)
Force_Dir Initialization Variable

Other Resources

Command Line Commands
Command Options

Tags :


Community Content

Julio Améstica
Download a project with visual source safe command line (ss.exe)

This code allows us download source safe project recursively

rem ##########################
@echo Off
set SSDIR=\\[source safe database path]
set SSUSER=[source safe user]
set SSPWD=[source safe user's password]
ss GET $/[path project] -R
if %ERRORLEVEL% EQU 100 goto ERROR
if %ERRORLEVEL% EQU 0 goto END

:ERROR
echo %ERRORLEVEL% "Source Safe Error"

:END
rem ############################

P.D.:Previously you must configure reditect output.
See http://msdn.microsoft.com/en-us/library/90c0z17f(VS.80).aspx

Tags :

Page view tracker