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 ,