MKDIR


Makes a folder/directory on the local file system

Syntax:
declare function Mkdir ( byref folder as const string ) as long

Usage:
result = Mkdir( folder )

Parameters:
folder
The new default folder/directory to be created, or a path to the sub-folder/sub-directory to be created.

Return Value:
Returns zero (0) on success, and negative one (-1) on failure.

Description:
Creates a folder/directoy on the local file system.

If folder is not a simple folder/directory name, but a path to a sub-folder/sub-directory, the parent folder(s)/directory(s) specified in the path must already exist.
(only one folder/directory can be created for each request)

Examples:
Dim pathname As String = "foo\bar\baz"
Dim result As Integer = MkDir( pathname )

If 0 <> result Then Print "error: unable to create folder " & pathname & " in the current path."

Platform Differences:
Differences from QB:
See also:
Back to Operating System Functions
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode