如何在PowerShell中静默删除包含内容的目录 [英] How to quietly remove a directory with content in PowerShell
本文介绍了如何在PowerShell中静默删除包含内容的目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用PowerShell,是否可以删除某些包含文件的目录而不提示您确认操作?
Using PowerShell, is it possible to remove some directory that contains files without prompting to confirm action?
推荐答案
Remove-Item -LiteralPath "foldertodelete" -Force -Recurse
这篇关于如何在PowerShell中静默删除包含内容的目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文