Share via


CP (Command Line)

Sets the current project path. For definitions of the command options, see Command Options in this Help system.

Syntax

ss CP <project> [-H] [-I-] [-Y] [-?]

Project Rights

Any Visual SourceSafe user can use this command.

Remarks

After you set the current project on the command line, most commands assume the current project if you simply specify a file name. For example, if you follow ss CP $/WORD with ss Get TEST.C, Visual SourceSafe retrieves $/WORD/Test.c.

On the Visual SourceSafe command line, when you get or check out a file, the file goes into the current folder. However, if the Force_Dir initialization variable is set to Yes, the file goes into your working folder for the project, even if that is not the current folder.

Examples

Makes $/WORD the current project:

ss CP $/WORD

Moves up to the parent of the current project:

ss CP ..

Moves up to the root project:

ss CP $/

See Also

Reference

Force_Dir Initialization Variable
Project (Command Line)

Other Resources

Command Line Commands
Command Options