windows - "rm -rf"等同于 Windows PowerShell?


这个问题似乎不是关于 a specific programming problem, a software algorithm, or software tools primarily used by programmers 的.如果您认为这个问题是关于 another Stack Exchange site 的主题,您可以发表评论,说明问题可能在哪里得到解答。

关闭 2 年前

Improve this question

我已经阅读了问题 "rm -rf" equivalent for Windows? .而且我还尝试了以下命令:

$ rm app
$ rmdir /s /q app
$ rmdir -s -q app
$ rd /s /q app

和许多其他变体。它总是提示我:

The item at C:\ThisDirectoryDoesNotExist\app\ has children and the Recurse parameter was not specified. If you continue, all children will be removed with the item. Are you sure you want to continue?

[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): A

当我选择 A 时,它会抛出一个错误:

rm : Cannot remove item C:\ThisDirectoryDoesNotExist\app.git\objects\pack\pack-45e426475eb08ff5042bf88556fbedd3956fba53.idx: You do not have sufficient access rights to perform this operation.

我该怎么做?

相关文章:

iphone - 变量被编译器优化掉

vb.net - 对象引用未设置到对象的实例

python - 在 Path 上安装 Python 3.9 时安装 Tensorflow?

iphone - 检测 UITableView 中的触摸和按住

c++ - 如何在 C++ 中初始化返回元组的变量?

perl - 'mv' 系统命令的 Perl 等价物是什么?

c# - 获取图标 128*128 文件类型 C#

java - 如何重写输入循环以不包含代码重复?

c# - 如何使用 C# 将字符串中的 "http:"替换为 "https:"?

PHP 错误 : Warning: Cannot modify header information