We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS


Creates a new directory.

Method of

File object


int dirCreate( FileSpecObject dirToCreate );


The dirCreate method has the following parameters:




A FileSpecObject representing the pathname of the directory to create.


An integer error code. For a list of possible values, see Return Codes.


The input parameter is a FileSpecObject that you have already created with the Install object's getFolder method. The following simple example demonstrates the use of the dirCreate method. Note that the getFolder method does not require that the folder or directory you specify exist in order for the object reference to be a valid one.


f = getFolder("Program", "myNewDirectory");
err = File.dirCreate(f);

Document Tags and Contributors

Contributors to this page: Sheppy, trevorh, Fredchat, Rod Whiteley
Last updated by: Sheppy,