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

MPW Command Reference


NewFolder

Built-in

SYNTAX

NewFolder name1 [name2]…

DESCRIPTION

The NewFolder command creates directories with the specified names.

INPUT

None

OUTPUT

None

STATUS

NewFolder can return the following status codes:

0

no errors; folders created for each name listed

1

syntax error

2

other error

3

attempt to use this command on a non-HFS disk

PARAMETERS

name1 [name2]…

Specifies one or more directory names. If you include a parent directory in a directory name (for example, Sources:CSources instead of CSources alone), the parent directory must already exist.

OPTIONS

None

EXAMPLES

The following command line creates Memos as a subdirectory of the current directory:

NewFolder Memos

In this example, the command line creates Parent as a subdirectory of the current directory, and Kid as a subdirectory of Parent. Note that although the second directory name includes a parent directory, it is still valid because the first directory name creates that parent directory.

NewFolder Parent :Parent:Kid

 
 


Last Updated July 2000