Win7 operating system uses CMD command to forcibly delete files

  

Win7 operating system uses CMD command to forcibly delete files

The specific steps are as follows:

1. Enter cmd-carriage in the search box;

2, in the pop-up black run window, enter the map: del /? ---" and then press the Enter button;

3, just enter the above command in the DOS window 2;

2, according to the help information to get the command to use: del [parameters] [path folder or destination file]

For example:

I want to delete c Under the disk, "TimeEventNSIS.log" file

This command is written as: del C:TimeEventNSIS.log

If it is forced to delete, write: 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.

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 file will be lost after the overwrite is written.

Copyright © Windows knowledge All Rights Reserved