本帖最后由 ivor 于 2018-12-27 17:04 编辑
WHY 发表于 2018-12-26 13:41@echo off
set "sDate=20180101"
set "eDate=20181227"
PowerShell "dir -Force | ?{$d=$_.CreationTime.ToString('yyyyMMdd');$_ -is [IO.DirectoryInfo] -and $d -ge '%sDate%' -and $d -le '%eDate%'} | sort -Des CreationTime | select FullName"
回复 13# duanxu3 复制代码 现在有问题还是用powershell解决比较快,代码又健壮。 |