Common command docs

1, if you want to delete a folder, enter the name rd letter: \ folder name, for example, I want to delete a file named wo D drive folder, enter rd d: \ wo so you can delete the folder of course, this method must delete the folder is empty folder, otherwise not deleted;

 

 

2, if you want to delete a file, enter the name del letter: \ filename, for example, I want to delete a file named 123.txt in the F disk, enter del f: \ 123.txt will be able to delete and press Enter the files. Of course, this command can only delete a file, you can not delete a folder, to delete a file using the command folder, find the file 123.txt displays;

 

 

3, if you want to delete folders and files together, enter rd / s / q letter name: \ folder name, this will be the folder and delete the files inside it together. For example, I want to delete a file named wo F-disk folders and files named 123.txt inside it, enter: rd / s / qf: \ wo can.

 

 

These are the specific methods Win7 system dos command to delete folders and files, follow the above method, we can easily use dos command to delete those files off a hard delete the folder.

Guess you like

Origin www.cnblogs.com/wsy0202/p/12089753.html