无法删除只读 + 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。只需按照说明操作即可。希望这能有所帮助。

相关内容