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 folder/directory to be created.

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

Description:
Creates a folder on the local file system.

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