* *
*
* * News
 • Daily news
 • Archived news

Columns
 • WildCard
 • Qbasic Articles
 • QB Comic!

Learning center
 • QB Books
 • Qbasic Lessons!
 • Qbasic FAQ
 • Newbies Section
 • Qbasic Tutorials

* *
*
*
*
*  
.RMDIR Statement Programming Example.

  QuickSCREEN      Details     Example      Contents      Index
ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
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.
* * ** * * * *