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.