Dir (Command Line)

Shows a list of all the files and subprojects in the specified project, or in the current project. This command is available only from the command line. For definitions of the command options, see Command Options in this Help system.

Syntax

ss Dir <project> [-C] [-D] [-E] [-F-] [-H] [-I-] [-N] [-O] [-R] [-V] [-Y] [-?]

Project Rights

You must have Read project right to use this command.

Remarks

The Dir command sets the operating system exit code for use in batch files and scripts.

Using Dir with the -E option is similar to using the Status command line command. Note, however, that Status shows only files that are checked out, while Dir with -E shows all files, but notes the file checkout status where applicable.

Examples

Shows a directory of the project $/WORD:

ss Dir $/WORD

Shows a directory of the current project:

ss Dir

Creates a complete list of all the projects in the Visual SourceSafe database without listing any files:

ss Dir $/ -F -R

See Also

Reference

-E Option (Command Line)
Status (Command Line)

Other Resources

Command Line Commands
Command Options