右鍵新增顯示隱藏資料夾功能

2021-06-19 19:12:07 字數 3877 閱讀 2968

@echo off  mode con cols=30 lines=4 title 右鍵選單新增成功 color 0a  if not exist "%windir%\superhidden.vbs" goto setup  reg delete "hkcr\clsid\" /f >nul 2>nul del /f /q "%windir%\superhidden.vbs" >nul 2>nul echo.&echo 已刪除顯示/隱藏副檔名及檔案 pause>nul exit :setup color 0a  >"%windir%\superhidden.vbs" echo dim wshshell  >>"%windir%\superhidden.vbs" echo set wshshell = wscript.createobject("wscript.shell") >>"%windir%\superhidden.vbs" echo wshshell.regwrite "hkcr\clsid\\instance\initpropertybag\clsid", "", "reg_sz" >>"%windir%\superhidden.vbs" echo wshshell.regwrite "hkcr\clsid\\instance\initpropertybag\method", "shellexecute", "reg_sz"  >>"%windir%\superhidden.vbs" echo if wshshell.regread("hkcu\software\microsoft\windows\currentversion\explorer\advanced\hidefileext") = 0 then  >>"%windir%\superhidden.vbs" echo wshshell.regwrite "hkcu\software\microsoft\windows\currentversion\explorer\advanced\showsuperhidden", "0", "reg_dword"  >>"%windir%\superhidden.vbs" echo wshshell.regwrite "hkcu\software\microsoft\windows\currentversion\explorer\advanced\hidden", "2", "reg_dword"  >>"%windir%\superhidden.vbs" echo wshshell.regwrite "hkcu\software\microsoft\windows\currentversion\explorer\advanced\hidefileext", "1", "reg_dword"  >>"%windir%\superhidden.vbs" echo wshshell.regwrite "hkcr\clsid\\instance\initpropertybag\command", "顯示", "reg_sz"  >>"%windir%\superhidden.vbs" echo wshshell.sendkeys "+e" >>"%windir%\superhidden.vbs" echo else >>"%windir%\superhidden.vbs" echo wshshell.regwrite "hkcu\software\microsoft\windows\currentversion\explorer\advanced\showsuperhidden", "1", "reg_dword"  >>"%windir%\superhidden.vbs" echo wshshell.regwrite "hkcu\software\microsoft\windows\currentversion\explorer\advanced\hidden", "1", "reg_dword"  >>"%windir%\superhidden.vbs" echo wshshell.regwrite  "hkcu\software\microsoft\windows\currentversion\explorer\advanced\hidefileext", "0", "reg_dword"  >>"%windir%\superhidden.vbs" echo wshshell.regwrite "hkcr\clsid\\instance\initpropertybag\command", "隱藏", "reg_sz"  >>"%windir%\superhidden.vbs" echo wshshell.sendkeys "+e" >>"%windir%\superhidden.vbs" echo end if  >>"%windir%\superhidden.vbs" echo set wshshell = nothing >>"%windir%\superhidden.vbs" echo wscript.quit(0) reg export "hkcu\software\microsoft\windows\currentversion\explorer\advanced" "%temp%\__.reg" >nul  for /f "tokens=2 delims==" %%. in ('find/i "hidefileext" "%temp%\__.reg"') do set v=%%~. del "%temp%\__.reg" set v=%v:~-1%  if %v% equ 0 set vv=隱藏 if %v% equ 1 set vv=顯示  >"%temp%\_.reg" echo regedit4 >>"%temp%\_.reg" echo [hkey_classes_root\directory\background\shellex\contextmenuhandlers\superhidden] >>"%temp%\_.reg" echo @="" >>"%temp%\_.reg" echo [hkey_classes_root\clsid\\inprocserver32] >>"%temp%\_.reg" echo @=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,33,32,5c,73,\ >>"%temp%\_.reg" echo   68,64,6f,63,76,77,2e,64,6c,6c,00 >>"%temp%\_.reg" echo "threadingmodel"="apartment" >>"%temp%\_.reg" echo [hkey_classes_root\clsid\\instance] >>"%temp%\_.reg" echo "clsid"="" >>"%temp%\_.reg" echo [hkey_classes_root\clsid\\instance\initpropertybag]  >>"%temp%\_.reg" echo "method"="shellexecute" >>"%temp%\_.reg" echo "param1"="superhidden.vbs"  >>"%temp%\_.reg" echo "clsid"="" >>"%temp%\_.reg" echo "command"="%vv%" regedit /s "%temp%\_.reg" del /f /q "%temp%\_.reg"  echo.&echo 已新增右鍵 %vv% pause>nul exit 

如何去掉桌面右鍵的顯示隱藏檔案選項

新建乙個文字文件

輸入以下

pause

regsvr32 /u /s igfxpph.dll

reg delete hkey_classes_root

\directory\background\shellex\contextmenuhandlers /f

reg add

hkey_classes_root

\directory\background\shellex\contextmenuhandlers\new /ve /d

reg delete hkey_local_machine\software\microsoft\windows\currentversion\run /v hotkeyscmds /f

reg delete hkey_local_machine\software\microsoft\windows\currentversion\run /v igfxtray /f

把字尾名改為cmd 儲存

右鍵新增顯示隱藏檔案 轉貼

右鍵新增顯示隱藏檔案 轉貼 2012年01月15日 右鍵新增顯示 隱藏系統檔案和隱藏檔案及顯示 隱藏副檔名的選項 在日常生活中,我們經常會要檢視隱藏檔案,以方便操作,如果選擇傳統的方法,的確是太慢。如果把 b 顯示隱藏檔案及副檔名 b 加在右鍵裡,豈不是很方便?的確,最近我就這麼做,的確方便不少。下...

右鍵新增顯示隱藏檔案 轉貼

右鍵新增顯示隱藏檔案 轉貼 2012年01月15日 右鍵新增顯示 隱藏系統檔案和隱藏檔案及顯示 隱藏副檔名的選項 在日常生活中,我們經常會要檢視隱藏檔案,以方便操作,如果選擇傳統的方法,的確是太慢。如果把 b 顯示隱藏檔案及副檔名 b 加在右鍵裡,豈不是很方便?的確,最近我就這麼做,的確方便不少。下...

顯示 隱藏 隱藏檔案

顯示隱藏檔案 開啟終端,輸入命令 該命令將finder的隱藏檔案顯示出來,並重新啟動finder。隱藏隱藏檔案 開啟終端,輸入命令 該命令將finder的隱藏檔案隱藏出來,並重新啟動finder。顯示以.開頭的檔案 在finder中,按快捷鍵command shift 可以顯示隱藏檔案 資料夾,再按...