MMEMory:RDIRectory <string>[,<recursive>]

(Write-Only) Removes the specified folder if it is empty. If the folder is NOT empty, a 'Media Protected' message appears.

See MMEM:CDIR to learn how to set the active drive/folder and how to specify a drive/folder.

See ALL MMEM commands.

Relevant Modes

ALL

Parameters

 

<string>

String - Drive, folder from which folder is to be removed. If unspecified, the active drive/folder is used.

<recursive>

String - Optional. Case-sensitive.

"recursive" - Removes everything in the specified folder and all sub-folders and their contents.

Examples

'Removes 'oldfolder' from active drive if it is empty.

MMEMory:RDIR "OldFolder"

'Removes 'oldfolder' from USB drive

MMEMory:RDIR "[USBDISK]:\OldFolder"

'Removes 'oldfolder' and all sub-folders

MMEMory:RDIR "OldFolder","recursive"

Query Syntax

Not Applicable

Default

Not Applicable


Last Modified:

1-Apr-2014

Added optional argument

23-Apr-2012

Major modifications