RMDIR Statement Programming Example This example shows how to use RMDIR to remove a subdirectory. ----- Note ----- Do not run this example unless you have a \TEMP subdirectory in a directory \SALES, and you want to remove that 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.