|
本帖最后由 kkkssc 于 2020-4-19 12:10 编辑
for /f "tokens=3 delims= " %%a in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidden') do set aa=%%a
if %aa%==0x1 (set aa=021) else (set aa=110)
echo y|reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidden /t "REG_DWORD" /d %aa:~0,1%
echo y|reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Hidden /t "REG_DWORD" /d %aa:~1,1%
echo y|reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v HideFileExt /t "REG_DWORD" /d %aa:~2,1%
echo Set WSHShell = WScript.CreateObject("WScript.Shell")>%tmp%\f5.vbs
echo WSHShell.SendKeys "{F5}">>%tmp%\f5.vbs
echo WScript.Quit(0)>>%tmp%\f5.vbs
start %tmp%\f5.vbs
exit
点一次显示隐藏文件和文件后缀
再点一次隐藏
---------------------------------
来论坛一年多学到不少东西,小脚本在各位大大面前班门弄斧了,不过,实用。
|
评分
-
查看全部评分
|