Force_Dir Initialization Variable

See Also

Strengthens the use of the Dir initialization variable.

Syntax

Force_Dir = {Yes|No}

Example

Indicates normal use of the Dir variable:

Force_Dir = Yes

Remarks

The Dir initialization variable is used to specify your working folder for a project. The Dir variable controls where VSS Explorer retrieves files. If Force_Dir is set to No, that is the only effect of the Dir variable. However, if you set Force_Dir to Yes (which it is by default), the Dir variable is used in two other circumstances.

  1. On the VSS command line, when you get or check out a file, the file goes into the current directory. But if Force_Dir is set to Yes, the file goes into your working directory for the project, even if that is not the current directory.

  2. When you perform a recursive get on a project, subdirectories are created for each subproject. For instance, for the subproject HELLO, a directory called HELLO is created, so the entire project list is copied into a directory tree. But if Force_Dir is set to Yes, subprojects go into their own respective working directories instead of into subdirectories under the main directory.

You can also set this variable in your SS.INI file by using the Assume a Directory, Based on the Current Project option on the Command Line Options tab in the SourceSafe Options dialog box.