Solution for U disk content hidden by virus (pro-test available)

  A few days ago, I was accidentally infected with a virus when I used a U disk. After I opened it with my own computer, there was only a shortcut to the U disk. After selecting Show hidden files, there was still no display, but when I checked the properties of the U disk It can be seen that the U disk has used more than 300 M, so I checked the method of displaying hidden files on the Internet. I tried some to no avail. Here I write down the useful solutions after I tried it.

  1. Create a new text document and write the following content

for /f "delims=?" %%a in ('dir /a /b') do attrib -a -s -h -r "%%a"

@echo off

pause > null

exit

    2. Save as a .cmd file, copy it to the root directory of the U disk, double-click to run, and the hidden files will appear. (remember to disinfect first,,,)

  Some other little knowledge about:

Win+R pops up the run dialog box, after writing cmd to enter the command line, use H: (where H is your drive letter) to enter the U disk, use the dir command to not display the file, and the dir /a command will display the hidden file file (it's also possible that your file is in the "_" directory)  

   dir /A Displays files with the specified attributes.
  Attributes D Directories R Read-only files
               H Hidden files A Files to be archived
               S System files I No content index files
               L Parse points - prefix for "no"

The attrib command is used to modify the attributes of files. Common attributes of files are: read-only , archive , hidden and system ,

The format and common parameters of the attrib command are:
ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [[drive:] [path] filename] [/S [/D]]
+ Set properties.
- Clear properties.
read-only file attributes.
A Archive file attribute .
S System file attributes.
H Hide file attributes.
I No Content Index file properties.
[drive:][path][filename]
Specifies the file attributes to process.
/S Process matching files in the current folder and its subfolders .
/D Process folders.
/L Processes properties of symbolic links and symbolic link targets.
attrib -r indicates the read-only attribute of the document. If there are not many files, you can also use the attrib command under cmd to manually modify

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325020362&siteId=291194637