Set the system hidden file + restore the display of hidden files cmd command!

Source: Internet
Author: User
Open notepad and enter the following content
For/F "delims = |" % I in ('dir/A/B ') Do attrib "% I" + S + H + R +
Save as "Hide. Bat" (the extension must be changed)
Double-click the file directory you want to hide!
 
 
Because it is hidden in cmd mode, it cannot be displayed in resource manager. Use the following method, for example, drive D. You can replace all the folder attributes of drive d with "Copy all the following text" to a new text file @ echo off title recover color 2f Echo: start echo enter the partition drive letter set/P rootpath = [A Letter to restore the hidden folder, for example, drive D, enter the letter D]: echo OK ------------------------------------------- ECHO are you sure you want to restore % rootpath %:/All folder hidden properties under the disk? Set/P is = [OK, please input y; otherwise, please input N, exit and enter q]: if/I "% is %" = "Y" Goto restore if/I "% is %" = "N" Goto start if/I "% is %" = "Q" Goto end goto start: restore echo restore ------------------------------------------- echo please wait, restoring all folder hidden properties under % rootpath %:/disk... attrib % rootpath %:/"*"-S-H/S/D echo completed --------------------------------------------- echo recovered. Do you want to continue restoring folders in other directories? Set/P again = [OK, please input y; otherwise, please input N]: if/I "% again %" = "Y" Goto start if/I "% again %" = "N" Goto end: End echo ends --------------------------------------------- echo pause. & then click "file"-"Save as" name "restore hidden. bat "Save type" all files "and double-click to run this" restore hidden. bat ", follow the prompts. 98% should be fine.

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.