Tools: MPW
Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Support

MPW Command Reference


MountProject

Built-in

SYNTAX

MountProject [project [-only]] | ([-pp] [-q] [-r] [-s])

DESCRIPTION

The MountProject command mounts the specified project and all of its subprojects, unless you specify the -only option, which mounts only the named project. If you omit the project parameter, MountProject lists all root projects.

Once mounted, a project can be accessed. To automatically mount frequently used projects, you can place the appropriate MountProject commands in one of your UserStartup•name files. If you do not want the projects automatically mounted, you can use AddMenu to create a Mount Project menu item instead.

INPUT

None

OUTPUT

None, unless you omit the project parameter, in which case a list of all root projects is written to standard output in the form of MountProject commands. When you omit the project parameter, the format of the output (MountProject commands) is determined by your use of the options -pp, -q, -r, or -s.

STATUS

MountProject can return the following status codes:

0

no errors

1

syntax error

2

error in processing

3

system error

PARAMETERS

project

Specifies the project directory by HFS pathname. If you omit this parameter, MountProject writes a list of all root projects to standard output in the form of MountProject commands.

OPTIONS

Note that you cannot use the last four options listed below with the project parameter. All the options except -only apply strictly to listing projects, not to mounting them.

-only

Mounts only the named project. No subprojects are mounted.

-pp

Lists mounted projects by using project pathnames instead of directory pathnames.

-q

Inhibits placing quotation marks around names containing spaces or special characters.

-r

Lists projects recursively.

-s

Writes only the names of root projects. Normally MountProject lists these projects in the form of commands.

EXAMPLES

The following command lines mount the projects DataBase and Test.

MountProject HD:DataBase
MountProject HD:localProjects:Test

SEE ALSO

CheckOutDir

NewProject

Project

UnmountProject

 
 


Last Updated July 2000