查看: 1185|回复: 0
收起左侧

[求助] 试毒时常用--显示隐藏文件选项批处理.bat

[复制链接]
xp163
发表于 2011-8-21 17:36:39 | 显示全部楼层 |阅读模式
@echo off

title 文件属性

color 87

mode con cols=60 lines=16

:start

color 87

cls

echo    ------------------------------------------------

echo   | 1:显示所有文件             内部命令说明:help|

echo   | 2:不显示隐藏文件                            |

echo   | 3:显示扩展名                                |

echo   | 4:不显示扩展名                              |

echo   | q:退出                                      |

echo   |                                              |

echo   |    我的博客:hi.baidu.com/long200259          |

echo   | m:来访我的博客                              |

echo    ------------------------------------------------

echo    设置后刷新一下就可以了。

echo.&echo.

set /p input="请按键选择:"

if /i "%input%"=="1" (goto :1)

if /i "%input%"=="2" (goto :2)

if /i "%input%"=="3" (goto :3)

if /i "%input%"=="4" (goto :4)

if /i "%input%"=="m" (goto :m)

if /i "%input%"=="q" (goto :exit)

if /i "%input%"=="help" (goto :help) else (goto :start)

:m

start iexplore http://hi.baidu.com/long200259

goto :start

:1

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Hidden /t reg_dword /d 1 /f

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidden /t reg_dword /d 1 /f

ping -n 2 127.0>nul

goto :start

:2

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Hidden /t reg_dword /d 00000000 /f

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidden /t reg_dword /d 00000000 /f

ping -n 2 127.0>nul

goto :start

:3

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t reg_dword /d 0 /f

ping -n 2 127.0>nul

goto :start

:4

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t reg_dword /d 00000001 /f

ping -n 2 127.0>nul

goto :start

:exit

exit

:help

color 0a

mode con cols=125 lines=16

echo -------------------------------------------------------------------------------------------------------------------------

echo 显示所有文件:

echo reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Hidden /t reg_dword /d 1 /f

echo reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidden /t reg_dword /d 1 /f

echo 不显示所有文件:

echo reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Hidden /t reg_dword /d 00000000 /f

echo reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidden /t reg_dword /d 00000000 /f

echo 显示文件扩展名:

echo reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t reg_dword /d 0 /f

echo 不显示文件扩展名:

echo reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t reg_dword /d 00000001 /f

echo -------------------------------------------------------------------------------------------------------------------------

echo.

echo 按任意键回到选项页

pause

mode con cols=60 lines=16

goto :start

http://hi.baidu.com/long200259

goto :start

:1

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Hidden /t reg_dword /d 1 /f

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidden /t reg_dword /d 1 /f

ping -n 2 127.0>nul

goto :start

:2

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Hidden /t reg_dword /d 00000000 /f

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidden /t reg_dword /d 00000000 /f

ping -n 2 127.0>nul

goto :start

:3

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t reg_dword /d 0 /f

ping -n 2 127.0>nul

goto :start

:4

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t reg_dword /d 00000001 /f

ping -n 2 127.0>nul

goto :start

:exit

exit

:help

color 0a

mode con cols=125 lines=16

echo -------------------------------------------------------------------------------------------------------------------------

echo 显示所有文件:

echo reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Hidden /t reg_dword /d 1 /f

echo reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidden /t reg_dword /d 1 /f

echo 不显示所有文件:

echo reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Hidden /t reg_dword /d 00000000 /f

echo reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidden /t reg_dword /d 00000000 /f

echo 显示文件扩展名:

echo reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t reg_dword /d 0 /f

echo 不显示文件扩展名:

echo reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t reg_dword /d 00000001 /f

echo -------------------------------------------------------------------------------------------------------------------------

echo.

echo 按任意键回到选项页

pause

mode con cols=60 lines=16

goto :start
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2025-1-17 06:13 , Processed in 0.126567 second(s), 16 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

快速回复 客服 返回顶部 返回列表