• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 在Windows Vista下快速取得文件操作權限

    發表于:2008-09-25來源:作者:點擊數: 標簽:windowsWindowsVISTAVista文件
    關鍵字:快速 取得 操作 權限 Vista安裝在NTFS分區上,很多系統文件的所有權都屬于系統而不是用戶,因此我們在操作這些文件時,就會出現由于權限不夠而拒絕訪問的情況。 Vista提供了一個命令行工具“takeown”,該工具以重新分配文件所有權的方式允許管理員
    關鍵字:快速 取得 操作 權限

     

          Vista安裝在NTFS分區上,很多系統文件的所有權都屬于系統而不是用戶,因此我們在操作這些文件時,就會出現由于權限不夠而拒絕訪問的情況。

    Vista提供了一個命令行工具“takeown”,該工具以重新分配文件所有權的方式允許管理員重新獲取先前被拒絕訪問的文件訪問權。命令行操作太麻煩,國外有人將這樣的操作整合到了文件右鍵菜單中:

    點擊“取得權限”,即可獲得該文件的訪問權。這個菜單是通過一個注冊表文件來添加的,內容如下:

      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\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”

    卸載:

      Windows Registry Editor Version 5.00
    
      [-HKEY_CLASSES_ROOT\*\shell\runas]
    
      [-HKEY_CLASSES_ROOT\Directory\shell\runas]

    將上述文字分別存儲為“安裝.reg”和“卸載.reg”文件,再將“安裝.reg”導入注冊表即可。

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>