無法刪除唯讀 + cmd 不起作用

無法刪除唯讀 + cmd 不起作用

我的筆記型電腦中的 Windows 檔案和資料夾已變為唯讀

在此輸入影像描述

我試過 : Right-click the folder > Properties Security tab > Advanced Click Change to the right of Owner Enter Users into box and click OK Enable the checkbox Replace owner on subcontainers and objects then click Apply If prompted that You do not have permissions to read... click Yes Completely close out of the Advanced Security Settings dialog Right-click the folder > Properties Security tab > Edit... Add... Enter Users into box and click OK Enable the Full Control checkbox then click OK

但什麼事也沒發生我也注意到 cmd 指令不起作用..

在此輸入影像描述

謝謝

%path% 的輸出:

C:\Users\Kareem Khalil>echo %path%
;c:\\C:\Program Files (x86)\WinRAR;;c:\\C:\Program Files (x86)\WinRAR;C:\Program Files (x86)\BC5\BIN;C:\Users\Kareem Khalil\AppData\Roaming\npm;C:\New Folder;C:\New Folder

答案1

Windows 命令不起作用

C:\Users\Kareem Khalil>echo %path%
;c:\\C:\Program Files (x86)\WinRAR;;c:\\C:\Program Files (x86)\WinRAR;C:\Program Files (x86)\BC5\BIN;C:\Users\Kareem Khalil\AppData\Roaming\npm;C:\New Folder;C:\New Folder

你的路完全斷了:

  • 它缺少 Windows 可執行檔的基本條目(這就是您的命令不起作用的原因)
  • 它不應包含\\條目
  • 它不應包含重複的條目
  • 它不應包含包含類似字串的條目c:\\C:\
  • 它不應包含;;條目

Windows 10(和先前版本的 Windows)上的正確(預設)路徑是:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\

什麼是 PATH 和其他環境變數?有關如何將您的值修復PATH為我上面顯示的正確值的說明。

答案2

在 Windows 10 中,有一個輔助選項可以取代 CMD,稱為 PowerShell。只需按照說明進行操作即可。希望這可以幫助。

相關內容