Method to recover files after USB flash drive poisoning: First create a new text document in a blank space on the desktop; then copy the relevant code in the file; then save it in the USB flash drive and name the file [Show hidden files. cmd]; Finally, start the command to perform the document recovery operation.
How to recover files after USB flash drive poisoning:
The first step is to right-click on a blank space on the desktop , create a new text document, as shown below
The second step, then copy the following piece of code into the document:
for /f "delims=?" %%a in ('dir /a /b') do attrib -a -s -h -r "%%a" @echo off pause>nul exit
The third step, then click "File--Save As" to save it on the USB drive. Name the file "Show Hidden Files.cmd", then click "Save" and pay attention to the file format.
The fourth step is to double-click the cmd format file just created in the USB drive to start the command to perform the document recovery operation, as shown in the following figure:
The fifth step, after the operation is successful, the command execution window will appear, as shown in the figure below. After the operation is completed, open the U disk again to display the hidden files.
The above is the detailed content of Files are missing after the USB flash drive is infected, how to restore it. For more information, please follow other related articles on the PHP Chinese website!