
- 帖子
- 146
- 积分
- 193
- 技术
- 1
- 捐助
- 0
- 注册时间
- 2021-5-27
|
本帖最后由 jave000 于 2021-9-2 12:46 编辑
回复 42# newswan
失败
Remove-Item -Path $dest * -Include *.txt
成功
Remove-Item -Path $dest* -Include *.txt
Remove-Item -Path $dest*.txt
Remove-Item $dest*.txt
另外Get-Item和Get-childItem的区别是后者包括指定路径下的子目录么?
但我目前用的功能都是指定路径根目录下,结果改了你的一个Get-childItem成为Get-Item却无法运行了,很费解 |
|