在Windows 7系統運作中。往往會遇到想要删除某個檔案夾時,系統提示:檔案夾通路被拒絕 你需要權限來執行此操作,如何才能删除此類檔案夾呢?
------------------

--------------------
制作一個管理者授權的檔案,把這個檔案加入系統資料庫
步驟:
開始 - 運作(輸入notepad)- 确定或者回車,打開記事本(出可以從:開始-所有程式-附件-記事本);
------------------------
在打開的記事本中複制下列檔案:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\runas]
@="管理者授權"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant
administrators:F"
[HKEY_CLASSES_ROOT\exefile\shell\runas2]
[HKEY_CLASSES_ROOT\exefile\shell\runas2\command]
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant
administrators:F"
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="管理者授權"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant
administrators:F /t"
以上是具體的檔案内容--------------------------------------------------------
-----------------------
----------------------
---------------------------
如果我們要删除檔案夾,則右鍵該檔案夾 - 運作管理者授權,再删除該檔案夾就可以順利地删除了。
怎樣取消Win7右鍵管理者權限:
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\*\shell\runas]
[-HKEY_CLASSES_ROOT\exefile\shell\runas2]
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
以上是具體的内容---------------------------
将檔案另存為:
取消管理者權限.reg,儲存并運作
-------------------------------------
----------------------------------------