RMDIR


Removes a folder/directory from the file system

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

Usage:
result = Rmdir( folder )

Parameters:
folder
The folder/directory to be removed.

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

Description:
Removes a folder from the file system. The function will fail if the folder is not empty.

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

If 0 <> result Then Print "error: unable to remove 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