Home  >  Article  >  Files are missing after the USB flash drive is infected, how to restore it

Files are missing after the USB flash drive is infected, how to restore it

coldplay.xixi
coldplay.xixiOriginal
2020-08-03 14:45:1612713browse

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.

Files are missing after the USB flash drive is infected, how to restore it

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

Files are missing after the USB flash drive is infected, how to restore it

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

Files are missing after the USB flash drive is infected, how to restore it

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.

Files are missing after the USB flash drive is infected, how to restore it

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:

Files are missing after the USB flash drive is infected, how to restore it

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.

Files are missing after the USB flash drive is infected, how to restore it

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn