DOS batch delete files

Click "Start" → "Run", enter: "CMD" and press Enter. Then enter in the "Command Prompt" window:

del X:\_desktop.ini /f /s /q /a (X represents the drive letter you want to operate, if it is C drive, change X to C)

Force delete X The _desktop.ini file in all directories under the disk (including the X disk itself) does not prompt whether to delete it.



Parameter meaning:

/f Force deletion of read-only files.

/q Specifies the mute state. You are not prompted to confirm deletion.

/s Deletes the specified file from the current directory and all its subdirectories. Displays the name of the file being deleted.

/a Delete by attribute.



There are also many friends who say that there are many hidden files of "thumbs.db" in the machine, which is normal. It is the file generated by the system enabling the image cache thumbnail. If you want to clear it, you can also use the above method to delete the file in batches, such as the C drive:

del c:\thumbs.db /f /s /q /a

Delete this After the file, in order to find a once and for all method, we will continue to enter:
regsvr32 /u shmedia.dll
After the confirmation, the system will no longer generate the "thumbs.db" file. (It is still recommended to turn on this option, which can speed up the preview of pictures in the folder)

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326643681&siteId=291194637