RmDir

Description

Removes a directory.

Syntax

ret = RmDir (DirString)

Parameters

ret

Integer,output

 

0 = OK

 

Non zero = Error

 

 

DirString

String, input

 

This string contains the name of the directory to be removed.

Remarks

This is a PASSPORT command. This command is a Visual Basic command but is not implemented by VBScript.

Note: The target directory must be empty for this command to work without returning an error.

Example

Sub ZMain()
RmDir "C:\Temp"
End Sub