【发布时间】:2011-06-12 19:51:28
【问题描述】:
我正在运行以下命令:
get-childitem C:\temp\ -exclude *.svn-base,".svn" -recurse | foreach ($_) {remove-item $_.fullname}
经常这样提示我:
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”?
【问题讨论】:
标签: scripting powershell windows-vista automation