a851409092 当前离线
列兵
went 当前在线
少校
powershell -c "Get-ChildItem -Recurse | Where-Object {!$_.PsIsContainer} | Sort-Object { $_.CreationTime } -Descending | Select-Object -First 10 | foreach { $_.FullName }"复制代码
TOP
5i365 (我心飞扬)当前离线
上尉
powershell "(gci -Rec -file | Sort CreationTime -Des | Select -First 10 ).FullName"复制代码
@echo off & cd /d "%~dp0" setlocal enabledelayedexpansion set "code=(for /f "delims=" %%i in ('dir /s /b /a-d'^) do @echo %%~ti_%%i^) ^| sort /r" set "n=0" for /f "tokens=1* delims=_" %%i in ('%code%') do ( if !n! equ 10 goto :exit echo %%j set /a "n+=1" ) :exit pause&exit复制代码
#@&cls&powershell "gc '%~f0'|out-string|iex"&pause&exit gci -Rec -file | Sort CreationTime -Des | Select "LastWriteTime","Name" -First 10 >log.txt复制代码
echo %%i %%j复制代码