我運行下面的命令:自動確認
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」 ?
作品完美...謝謝! – siliconpi 2011-01-21 03:06:28
對我不起作用:( 刪除項目iis:$ IISSitePath -Force – smnbss 2011-12-09 18:30:12
@smnbss add -recurse到您的remove-item命令 – 2015-01-23 15:12:31