How does Win7 use CMD commands to forcibly delete files?

  
                

The CMD command is included with the Windows system. It is very simple to use and can be understood at a glance. Recently, users of Win7 system want to delete unnecessary files. If they find that these files cannot be deleted, they can't be deleted. What should I do? How should we solve this problem when we encounter such a problem? Now let's talk about how Win7 uses the CMD command to forcefully delete files.

The specific steps are as follows:

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

Enter the figure in the black running window that pops up: del /? ---" Then 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

If it is forced to delete, write it as: del /F /S /QC:\\TimeEventNSIS.log

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

3, of course, the carriage return is executed!

Of course, this command can also use wildcards.

For example: .*? These

, for example, forcefully delete all Notepad files under the C:\\XXX folder.

Then the command is: del /F /S /QC:\\XXX\\*.txt---"Enter

You can delete all the notes under the C:\\XXX folder. This document is gone.

4. Finally, if you accidentally delete the file, please use the third-party file recovery software to recover, otherwise the file will be lost after the overwrite is written! It's hard to get back!

The above is how Win7 uses the CMD command to forcibly delete the entire contents of the file. If you have a file that you can't delete, you can use the CMD command to forcefully delete the file. The method is on the above. If you need it, you can check it out.

Copyright © Windows knowledge All Rights Reserved