RmDir: Difference between revisions
No edit summary |
(→Syntax) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
The '''RmDir''' [[command]] removes a subdirectory. You may also simply use the first 2 letters of the command - '''RM'''. For a complete list of abbreviations, visit the [[Keyword Abbreviation]] page | The '''RmDir''' [[:category:Commands|command]] removes a subdirectory. You may also simply use the first 2 letters of the command - '''RM'''. For a complete list of abbreviations, visit the [[Keyword Abbreviation]] page | ||
==Syntax== | ==Syntax== | ||
[[Image: | RMDIR [<[[drive]]>:\] [<path>\] <directory> | ||
[[Image:RmDir.png]] | |||
==Default== | ==Default== | ||
Use the current | Use the current drive and directory. | ||
==Parameters== | ==Parameters== | ||
''' | '''Drive''' is the drive letter of the disk on which you wish to remove a directory. <br> | ||
'''Path''' is the sequence directories leading to the subdirectory to be removed. <br> | |||
'''Name of directory to be removed''' indicates the name of the subdirectory to be removed. <br> | |||
==Comments and Examples== | ==Comments and Examples== | ||
The subdirectory that you wish to remove must be empty. It can contain no other files or subdirectories. | |||
The subdirectory that you wish to remove must be empty. It can contain no other files or subdirectories. Also, BR does not allow you to delete the current directory. | |||
The following example removes the subdirectory IMPORT from the current directory of the current drive: | The following example removes the subdirectory IMPORT from the current directory of the current drive: | ||
Line 20: | Line 26: | ||
The next command removes the subdirectory IMPORT from the directory DIR1 on drive A: | The next command removes the subdirectory IMPORT from the directory DIR1 on drive A: | ||
RMDIR A: | RMDIR A:\DIR1\IMPORT | ||
<noinclude> | <noinclude> |
Latest revision as of 17:03, 8 May 2014
The RmDir command removes a subdirectory. You may also simply use the first 2 letters of the command - RM. For a complete list of abbreviations, visit the Keyword Abbreviation page
Syntax
RMDIR [<drive>:\] [<path>\] <directory>
Default
Use the current drive and directory.
Parameters
Drive is the drive letter of the disk on which you wish to remove a directory.
Path is the sequence directories leading to the subdirectory to be removed.
Name of directory to be removed indicates the name of the subdirectory to be removed.
Comments and Examples
The subdirectory that you wish to remove must be empty. It can contain no other files or subdirectories. Also, BR does not allow you to delete the current directory.
The following example removes the subdirectory IMPORT from the current directory of the current drive:
RMDIR IMPORT
The next command removes the subdirectory IMPORT from the directory DIR1 on drive A:
RMDIR A:\DIR1\IMPORT