A variety of ways to restore hidden files on U disk

Source: Internet
Author: User

Folders are hidden because attributes are changed to hide files or system files, and if they are hidden, the option to remove hidden files directly from the attribute is OK.

But poisoning, this method is mostly not, this is because the folder's properties are changed to system files. System files have both hidden files and read-only file properties, after anti-virus although the virus is not in, the impact of the virus has not disappeared. You have to manually change the properties of the folder. However, in the Windows system, the properties of the system files cannot be modified in the file's property pages. (In a sense, the virus is also a loophole in Microsoft's Windows ...-_-) to remove System file attributes, in fact, is also very simple.

The preparation is to have the system display the file's extension, which is the suffix name, if it is already displayed, this step does not have to do, if not shown, in any file, choose Tools-Folder Options, select the "View" tab, to find "hide the extension of known files" one, remove the previous tick, point to determine , the extension is displayed.

When you're done, get to the point, first, create a new text document.

Then, open this document, enter the inside "Attrib-s-h-r *.*/s/d" (without quotes, note the space must be less!), save exit.

Then modify the file name *.bat, that is, the filename is arbitrary, the suffix name is bat.

After the change found that the icon changed, if not changed to explain the extension is not changed, then to check whether the system shows the file name extension, is the above preparation.

Finally, copy the file to the root directory of the problematic U disk, double-click to run.

Don't worry, this window will last for a while and it will close automatically when the run is over. Look at the files and folders in the U disk, are they back to the original?

In order to satisfy the curiosity of a few people, explain why to do so. It said that the folder was added to the system file properties, so our goal is to remove this property, although Windows operation does not work, but the DOS command line can.

attrib is the command to modify the file properties, and you can see how the command is used when you enter help attrib under the DOS command line.

To see the parameters of the Arrtib command, "-s-h-R *.*/s/d". -Number, is the minus sign, meaning is removed, s represents system files, h indicates hidden files, R represents read-only files. -s-h-R indicates that the system, hidden, and read-only properties are stripped, and the next *.* means that all files under the directory are manipulated, and the file or folder name can also be written here. /S/D means that you also work with files in folders and folders. The whole sentence means removing the system, hidden, and read-only properties of all files and folders in the current directory.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.