Board logo

标题: [问题求助] [已解决]Powershell列出1MB到10MB的文件报错 [打印本页]

作者: netdzb    时间: 2021-5-27 10:06     标题: [已解决]Powershell列出1MB到10MB的文件报错

  1. Get-ChildItem -Path 'd:\power' -Recurse -Include *.mp3 | Where-Object -FilterScript  ($_.Length -ge 1m) -and ($_.Length -le 10m)}
复制代码

作者: went    时间: 2021-5-27 12:43

3MB,10MB
  1. Get-ChildItem *.mp3 | Where-Object {$_.Length -ge 3MB -and $_.Length -le 10MB}
复制代码





欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2