bas7ex.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
RMDIR Statement Programming Example
                       Example                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
'This example uses the RMDIR statement to remove a subdirectory.
 
CHDIR "C:\SALES\TEMP"   'Move to \TEMP subdirectory in \SALES.
KILL "*.*"              'Remove all files in \TEMP.
CHDIR ".."              'Move back up to \SALES.
RMDIR "TEMP"            'Remove \TEMP subdirectory.