在 Windows 中删除大文件夹的最快方法是什么? [英] What's the fastest way to delete a large folder in Windows?

查看:31
本文介绍了在 Windows 中删除大文件夹的最快方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想删除一个包含数千个文件和文件夹的文件夹.如果我使用 Windows 资源管理器删除文件夹可能需要 10-15 分钟(不总是,但经常).Windows 中是否有更快的方法来删除文件夹?

I want to delete a folder that contains thousands of files and folders. If I use Windows Explorer to delete the folder it can take 10-15 minutes (not always, but often). Is there a faster way in Windows to delete folders?

其他细节:

  • 我不在乎回收站.
  • 这是一个 NTFS 驱动器.

推荐答案

使用 Windows 命令提示符:

rmdir /s /q folder

使用 Powershell:

powershell -Command "Remove-Item -LiteralPath 'folder' -Force -Recurse"

请注意,在更多情况下,delrmdir 会给您留下剩余的文件,Powershell 会设法删除这些文件.

Note that in more cases del and rmdir wil leave you with leftover files, where Powershell manages to delete the files.

这篇关于在 Windows 中删除大文件夹的最快方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆