Syntax
RmDir Name$
Remarks
Removes the specified folder. Name$ can be a full or relative path. For this statement to work, the folder must contain no files or subfolders. RmDir cannot remove the current folder.
Examples
This Windows example deletes all files from a folder and then deletes the folder:
Kill "C:\WORD\FCCPROJ\*.*" RmDir "C:\WORD\FCCPROJ"
The following is the same example, rewritten for the Macintosh:
curfolder$ = Files$(":") ChDir "HD:WORD:FCC PROJECT" Kill MacID$("****") ChDir curfolder$ RmDir "HD:WORD:FCC PROJECT"
The following example deletes a subfolder within the current folder:
RmDir "FCCPROJ"
The following examples delete a folder at the same level as the current folder:
RmDir "..\FCCPROJ" 'Windows example RmDir "::FCC PROJECT" 'Macintosh example
See Also
ChDir, Files$(), Kill, MacID$(), MkDir