Share via


Force_Prj Initialization Variable

Automatically sets the current project based on the current folder before running a command. This variable applies only to the Visual SourceSafe command line utility SS (Ss.exe).

Syntax

Force_Prj = {Yes|No|Ask}

Remarks

The following table specifies the possible options that you can set for this initialization variable.

  • Yes
    Sets the current project based on your current folder before running a command. Use of this setting allows you to change folders to move around your projects without executing the CP command.
  • No
    Does not switch your current project based on the current folder.
  • Ask
    Prompts before changing your project.

If you set Force_Prj to Yes, you are recommended not to give two projects the same working folder. If you do, Visual SourceSafe will be unable to determine the correct project.

You can set this variable in your Ss.ini file directly or in Visual SourceSafe Explorer. In Visual SourceSafe Explorer, use the SourceSafe Options dialog box, Command Line Options tab. Select the Assume project based on working folder check box to set this variable to Yes.

Examples

Specifies that Visual SourceSafe does not automatically change the current project based on the working folder:

Force_Prj = No

See Also

Reference

CP (Command Line)
SourceSafe Options Dialog Box, Command Line Options Tab (Explorer)

Other Resources

Initialization Variables