for /r %F in (*) do @echo %~tF %F >>for.txt(需要是两个箭头,否则只会保留最后一行)
https://stackoverflow.com/questions/11215702/cmd-dir-b-s-plus-date
dir /s /b /t >dir.txt(/t不管用,仍然是/b 裸格式)
dir /s /b /T:W
cmd /c dir /s >dir.txt