本文介绍了在PowerShell中删除自动确认的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我运行下面的命令:
get-childitem C:\temp\ -exclude *.svn-base,".svn" -recurse | foreach ($_) {remove-item $_.fullname}这促使我非常频繁是这样的:
Which prompts me very frequently like this:
Confirm The item at C:\temp\f\a\d 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?
How can I have it automatically set to "A"?
推荐答案尝试使用 -Force 参数上删除-项目。
更多推荐
在PowerShell中删除自动确认
发布评论