脚本 – 在powerhell中自动确认删除
发布时间:2020-12-13 20:57:53 所属栏目:Windows 来源:网络整理
导读:我正在运行以下命令: get-childitem C:temp -exclude *.svn-base,".svn" -recurse | foreach ($_) {remove-item $_.fullname} 哪些提示我非常频繁地这样: ConfirmThe item at C:tempfad has children and the Recurse parameter was not specified.
我正在运行以下命令:
get-childitem C:temp -exclude *.svn-base,".svn" -recurse | foreach ($_) {remove-item $_.fullname} 哪些提示我非常频繁地这样: Confirm The item at C:tempfad 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”?
尝试使用Remove-Item上的-Force参数。
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |