如何找到蝙蝠的文件创建日期? [英] How do I find the file creation date to the bat?
本文介绍了如何找到蝙蝠的文件创建日期?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
告诉我如何找出在BAT中创建文件的日期. 我们有一个%%〜ti变量,但它仅指示文件的修改日期.您怎么知道文件创建的日期呢?
Tell me how you can find out the date the file was created in BAT. We have a variable for %%~ti, but it only indicates the file's modification date. And how do you know it is the date the file was created?
推荐答案
@echo off
for /f "skip=5 tokens=1,2 delims= " %%a in ('dir /a-d /tc "%~1"') do (
echo Date: %%a, Time: %%b, File: %~1
exit /b 0
)
这篇关于如何找到蝙蝠的文件创建日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文