RD / RMDIR (Windows NT/2000/XP/Vista/7 CMD)

RD/RMDIR

RD/RMDIR

Article is compatible with Microsoft Windows NT/2000/XP/Vista/7 command line.

RD and RMDIR are used within the Windows command shell to remove files, directories, and directory trees.

Syntax:
RD
or RMDIR [ /S ] [ /Q ] [ drive: ]path
RD or RMDIR [ /? ]

drive The drive you want to delete your directory from.
path The path to the directory.
/S Removes the directoy specified and all of its subdirectories and files. Essentially, it removes an entire directory tree.
/Q A quiet option; used with /S, it surpresses the prompting of confirmation to delete directory trees.
/? Displays the built-in help text.

Example:

  • RD /S /Q C:\test
    This will remove all the files and directores inside of test, without prompting for confirmation, and will delete the C:\test folder as well.

For more information on this command, check out the official Microsoft documentation, here.

Popularity: 25% [?]

  • MySpace
  • Blogger Post
  • Digg
  • Facebook
  • Twitter
  • Google Bookmarks
  • Share/Bookmark

1 comment to RD / RMDIR (Windows NT/2000/XP/Vista/7 CMD)

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>