貌似经常有人的U盘之类的插到中毒电脑后文件被隐藏掉,结果文件都找不到(笨到不会显示隐藏文件,有些人还是很固执的不想看见隐藏文件...)以下代码复制到记事本保存为bat文件,文件复制到U盘,双击运行,可以解决问题。@echo offcolor 3ftitle 显示隐藏文件 制作:Nobirdmode con: cols=49 lines=8ECHO.:mainecho ++++++++++++++++++++++++++++++++++++++++++++++++echo ++++++++++++++++++++++++++++++++++++++++++++++++echo ++++ 1、隐藏文件 ++++echo ++++ 2、显示文件 ++++echo ++++ 3、退出程序 ++++echo ++++++++++++++++++++++++++++++++++++++++++++++++echo ++++++++++++++++++++++++++++++++++++++++++++++++set mian=set /p main= if /I "%main%"=="1" goto yincangif /I "%main%"=="2" goto xianshiif /I "%main%"=="3" exitif not defined name (goto bendan):yincangclsecho ++++++++++++++++++++++++++++++++++++++++++++++++echo ++++++++++++++++++++++++++++++++++++++++++++++++echo ++++ 程序处理中,请稍候... ++++echo ++++++++++++++++++++++++++++++++++++++++++++++++echo ++++++++++++++++++++++++++++++++++++++++++++++++attrib +r +s +h *.* /S /Dgoto exit:xianshiclsecho ++++++++++++++++++++++++++++++++++++++++++++++++echo ++++++++++++++++++++++++++++++++++++++++++++++++echo ++++ 程序处理中,请稍候... ++++echo ++++++++++++++++++++++++++++++++++++++++++++++++echo ++++++++++++++++++++++++++++++++++++++++++++++++attrib -r -s -h *.* /S /Dgoto exit:bendanclsecho 笨蛋,连1 2 3都输入不明白,你还活个屁呀!pause>>nulclsgoto main:exitecho ++++++++++++++++++++++++++++++++++++++++++++++++echo ++++++++++++++++++++++++++++++++++++++++++++++++echo ++++ 程序处理完毕,按任意键退出本程序 ++++echo ++++++++++++++++++++++++++++++++++++++++++++++++echo ++++++++++++++++++++++++++++++++++++++++++++++++pause>>nul以上代码适合电脑未中毒,但是文件已经被隐藏的情况,下面这段代码适合部分电脑病毒清理干净后依然无法显示隐藏文件的情况@echo offtitle 显示当前文件夹所有文件 制作:不是鸟儿color 3fECHO.:mainecho 修复受损电脑的文件显示 echo -----------------------------------------------------------------------echo 显示文件请按1echo -----------------------------------------------------------------------set mian=set /p main= if /I "%main%"=="1" goto xianshi:xianshiecho Windows Registry Editor Version 5.00>>nobird.regecho [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\NOHIDDEN]>>nobird.regecho "RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced">>nobird.regecho "Text"="@shell32.dll,-30501">>nobird.regecho "Type"="radio">>nobird.regecho "CheckedValue"=dword:00000002>>nobird.regecho "ValueName"="Hidden">>nobird.regecho "DefaultValue"=dword:00000002>>nobird.regecho "HKeyRoot"=dword:80000001>>nobird.regecho "HelpID"="shell.hlp#51104">>nobird.regecho [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL]>>nobird.regecho "RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced">>nobird.regecho "Text"="@shell32.dll,-30500">>nobird.regecho "Type"="radio">>nobird.regecho "CheckedValue"=dword:00000001>>nobird.regecho "ValueName"="Hidden">>nobird.regecho "DefaultValue"=dword:00000002>>nobird.regecho "HKeyRoot"=dword:80000001>>nobird.regecho "HelpID"="shell.hlp#51105">>nobird.regecho [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SuperHidden]>>nobird.regecho "Type"="checkbox">>nobird.regecho "Text"="@shell32.dll,-30508">>nobird.regecho "WarningIfNotDefault"="@shell32.dll,-28964">>nobird.regecho "HKeyRoot"=dword:80000001>>nobird.regecho "RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced">>nobird.regecho "ValueName"="ShowSuperHidden">>nobird.regecho "CheckedValue"=dword:00000000>>nobird.regecho "UncheckedValue"=dword:00000001>>nobird.regecho "DefaultValue"=dword:00000000>>nobird.regecho "HelpID"="shell.hlp#51103">>nobird.regecho [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SuperHidden\Policy]>>nobird.regecho [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SuperHidden\Policy\DontShowSuperHidden]>>nobird.regecho @="">>nobird.regreg import nobird.regDEL nobird.regattrib -r -s -h *.* /S /Dgoto exit:exitecho 处理完毕,按任意键退出pause>>nul注意,以上两批处理,请勿在C盘根目录运行,后果自负。 转载请注明:鸟儿博客 » 显示隐藏文件