How to delete folders and files under dos

  

How to delete folders and files under dos:

To delete folders or files under dos, first make sure that the folder or file has special Properties such as "system", "read-only", "hidden", if any, remove these attributes, the command is as follows

Folder: attrib c:\\windows -s -r -h

File: attrib -s -h -rc:\\windows\\autorun.inf

The delete command is as follows,

Delete folder (empty): rd c:\\windows

Delete file: del c:\\windows\\autorun.inf

Tip: If the operation is in the current path, you can omit the path. Such as: rd new folder or del new file.txt

Copyright © Windows knowledge All Rights Reserved