Board logo

标题: [其他] dir 获取文件时间 只输出时间 [打印本页]

作者: pl05135513    时间: 2019-8-14 17:52     标题: dir 获取文件时间 只输出时间

E:\>dir html.zip /t:w
驱动器 E 中的卷是 新加卷
卷的序列号是 F224-83A1

E:\ 的目录

2019/04/09  13:47        22,438,893 html.zip
               1 个文件     22,438,893 字节
               0 个目录  9,645,047,808 可用字节

如上 只显示红色部分

或者 直接输入dir  只显示 时间
E:\>dir
驱动器 E 中的卷是 新加卷
卷的序列号是 F224-83A1

E:\ 的目录

2019/08/02  09:38     <DIR>          BaiduNetdiskDownload
2019/04/09  13:47        22,438,893 html.zip
2019/04/16  13:51    <DIR>          QMDownload
2019/03/04  17:31    <DIR>          sigerdata
2018/12/12  10:09       22,438,893 html.zip
2019/02/28  01:40       22,438,893 html.zip
2019/01/29  15:56    <DIR>          其他软件
2019/03/12  06:07        22,438,893 html.zip
作者: Batcher    时间: 2019-8-14 18:52

  1. @echo off
  2. for %%i in ("E:\html.zip") do (
  3.     echo %%~ti
  4. )
  5. pause
复制代码

作者: pl05135513    时间: 2019-8-15 09:23

回复 2# Batcher


    3q3q




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