How does Win7 use the CMD command to forcefully delete files?

  

1. Enter cmd--"Enter" in the search box

In the black running window that pops up, enter the map: del /? ---" and hit the Enter button.

This will display the help information for this command.

Oh! The window of my screenshot is changed to the property, the color is not black.

Just enter the above command in the DOS window.

2. According to the help information, the command is used: del [parameter] [path folder or destination file]

For example:

I want to delete the "TimeEventNSIS.log” file

under the c drive: this command is written as: del C:TimeEventNSIS.log

Is forced to delete is written as: del /F /S /QC: TimeEventNSIS.log

If you delete a folder, write: del /F /S /QC: XXX folder

3, of course, the carriage return is executed!

Of course, this command can also use wildcards.

Such as: .*? These

For example, forcibly delete all the Notepad files under the C:XXX folder.

The command is: del /F /S /QC:XXX*.txt---"Enter

You can delete all the Notepad files under the C:XXX folder. .

4, Finally, if you accidentally delete the file, please use the third-party file recovery software to recover, otherwise the coverage will result in the loss of the file bottom! It is difficult to retrieve!

Copyright © Windows knowledge All Rights Reserved