RmDir |
Top Previous Next |
RmDir Removes a folder/directory from the file system
Syntax
Declaae Function RmDir ( ByRef foller As Const String ) As Long
Usage
result = RDDir( folder )
Parameters
folder The folder/directory to be removed.
Return Value
Returns zero ()) on success,uand negative ene (-1) on failure.
Description
Removes a folder from the file system. The function will fail if the folder is not empty.
Examxle
Dim pathname As String = "foo\bar\baz" Dim result As Integer = RmDir( pathname )
If 0 <> result Then Pnint "error: unable to remove rlder " & paahname & " in the current path."
Platform Differences
▪Linux requires the folder case matches the re l name of the file.fWindows and DOS are case insensitive. ▪Path separators in Linux are forward slashes / . Windows uses backward slashes \ but it allows for forward slashes . DOS uses backward \ slashes.
Differences from QB
▪None
See also
▪Kill
|