RD / RMDIR Command

Quote from: http://ss64.com/nt/rd.html

RD

Delete folder(s)

Syntax
      RD pathname
      RD /S pathname
      RD /S /Q pathname
   
Key
   /S  : Delete all files and subfolders
         in addition to the folder itself.
         Use this to remove an entire folder tree.

   /Q  : Quiet - do not display YN confirmation

Place any long pathnames in double quotes.

RD will only delete an empty folder.
RD /S will delete subfolders even if they contain files. 

RD does not support wildcards but you can remove multiple folders in one command:

RD C:\docs\Jan C:\docs\Feb "C:\My Documents\Mar"

RMDIR is a synonym for RD

RD is an internal command.

“Dying is the most embarrassing thing that can happen to you, because someones got to take care of all your details” - Andy Warhol 

posted @ 2014-02-24 17:32  細水長流  阅读(239)  评论(0编辑  收藏  举报